---
title: Deploy Drupal with AI on Blossom
url: "/deploy/drupal/"
canonical_url: https://blossom88.com/deploy/drupal/
markdown_url: https://blossom88.com/deploy/drupal.md
summary: Publish your first structured article in Drupal with an image and a separate
  Content Editor account.
categories:
- deployment
- cms
stack:
- PHP
- Apache
- MariaDB
---

# Deploy Drupal with AI on Blossom

[Drupal](https://www.drupal.org/) is a content management system for
structured websites. A single article is enough to try its editor,
media fields, and user permissions.

## Ask Your Agent

> **Ask your AI agent:** Deploy Drupal privately on Blossom and help me publish an article with an image as a Content Editor.
>
> Follow this guide: https://blossom88.com/deploy/drupal/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Drupal | Serve the site and editing interface | Persistent Service |
| MariaDB | Store content, roles, and site configuration | Blossom Managed Data |
| Volume | Keep Drupal settings and uploaded images | Blossom Persistent Capacity |

## Deploy Drupal

Use a [Persistent Service](/docs/apps/persistent-services/) and managed
MariaDB. Keep Account access enabled while you complete Drupal’s
Standard installer and create the first administrator.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the [official Drupal Apache image](https://hub.docker.com/_/drupal)
with a Volume at `/data`. Put the site’s `sites/default` directory on
that Volume so settings and uploaded files stay together. Copy the
image’s default site files only on fresh storage. Keep Drupal core and
any custom modules or themes in the release image.

Select a compatible [MariaDB release](https://www.drupal.org/docs/getting-started/system-requirements/database-server-requirements)
and enter its linked private address and credentials in the protected
installer. Apply the bundled Article content type recipe if the selected
Standard profile has no Article type. Grant the Content Editor the
permissions to create Article content and edit their own articles.

Have Apache pass the forwarded HTTPS scheme through to Drupal. This
keeps the installer's redirects on the generated HTTPS origin.
Probe a bundled static asset such as `/core/misc/drupal.js` during
installation so the health check can run while Drupal configures its
homepage.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data drupal-plan.yml
    blossom database_instance:create --data mariadb.yml
    blossom environment_link:create --data mariadb-link.yml
    blossom service:create --data drupal.yml
    blossom environment:deploy --id environment-100 --follow
    blossom shell --service service-100 -- su -s /bin/sh www-data -c 'cd /opt/drupal/web && php core/scripts/dr recipe:apply core/recipes/article_content_type --no-interaction'

</details>

## Publish Your First Article as a Content Editor

Create a separate **Content Editor** account. Sign in with that account,
choose **Add content → Article**, and add a title, body, and sample
image with alternative text. Save the article and open it on your site.

![Add structured article text, an image, and alternative text in Drupal.](/deploy/assets/images/drupal/drupal-article-editor.webp)

> **Ask your AI agent:** Help me create a Drupal Content Editor and publish an article with a sample image and alternative text.

> Follow this guide: https://blossom88.com/deploy/drupal/



## Verify the Article After an Update

Replace the Container and open the same article and image. Sign in as
the same Content Editor and reopen the article in the editor.

![Open the same article and image after replacing the Container.](/deploy/assets/images/drupal/drupal-workshop-site.webp)


> **Ask your AI agent:** Replace the Drupal Container and verify the same article, original image, and Content Editor access.

> Follow this guide: https://blossom88.com/deploy/drupal/



## What You Get

- A Drupal site using managed MariaDB
- An Article content type with an image and alternative text
- A separate Content Editor who can publish and revise their own article

Tested on Blossom: The same article, original image bytes, and Content Editor access survived Container replacement.
