> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/getting-started/requirements.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Requirements

What a server, or a developer's computer, needs to run Mutamad.

## Software

|             | Version                  | Notes                                                                                                                                                                                                           |
| ----------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PHP         | **8.4**                  | The site refuses to run on PHP older than 8.3 (ECC 2-10-3). Extensions: `gd` (with WebP and AVIF), `mysql`, `xml`, `mbstring`, `curl`, `zip`, `intl`, `bcmath`, `opcache`, `apcu`, `sqlite3`, `uploadprogress`. |
| Database    | MariaDB 10.11 or MySQL 8 | `utf8mb4` / `utf8mb4_unicode_ci`.                                                                                                                                                                               |
| Web server  | Apache 2.4 or nginx      | With PHP-FPM. On nginx, add the static-file caching rule in [Production](https://ispectra.gitbook.io/mutamad/getting-started/production.md).                                                                    |
| Composer    | 2.x                      |                                                                                                                                                                                                                 |
| Drupal core | 11.4                     | Pinned by the project template.                                                                                                                                                                                 |
| Drush       | 13                       | Installed by the project template.                                                                                                                                                                              |
| DDEV        | Current                  | For development. Optional: see [Installation](https://ispectra.gitbook.io/mutamad/getting-started/installation.md).                                                                                             |

Check that GD supports WebP and AVIF (Canvas makes AVIF image sizes):

```bash
php -r 'var_dump(gd_info()["AVIF Support"] ?? false, gd_info()["WebP Support"]);'
```

Both must print `bool(true)`.

## What the server must provide

| Need                                               | Why                                                                                                                                                                                                                         |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Access to drupal.org during installation**       | The installer downloads translations from localize.drupal.org, and Automatic Updates checks updates.drupal.org. A network without outbound access cannot install Mutamad; on an unreliable one, run the installation again. |
| **A cron job every minute**                        | Mutamad turns core's Automated Cron off. Without the server's cron, the site stops checking for security updates, expiring passwords and trimming its log, with no error.                                                   |
| **A mail relay**                                   | Workflow notifications and password resets. Without one, mail goes through the server's `sendmail`, and on a server with none every email is lost without an error.                                                         |
| **A syslog daemon**                                | Every log entry goes to syslog as JSON (facility `LOCAL0`, ident `mutamad`). The daemon forwards it to the entity's SIEM.                                                                                                   |
| **A private files directory outside the web root** | Created by the installer at `private-files/`, beside `web/`.                                                                                                                                                                |
| **HTTPS**                                          | The site sends HSTS.                                                                                                                                                                                                        |

## Sizing

|        | Without the AI chatbot | With the AI chatbot's model on the same server |
| ------ | ---------------------- | ---------------------------------------------- |
| CPU    | 4 cores                | 8 cores, or a GPU                              |
| Memory | 8 GB                   | 16 GB or more                                  |
| Disk   | 40 GB                  | 60 GB                                          |

PHP-FPM: `memory_limit` 512M, `upload_max_filesize` and `post_max_size` 64M, `max_execution_time` 300.

## Optional

| For                                                                                               | You need                                                                                         |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [AI for editors](https://ispectra.gitbook.io/mutamad/site-building/ai.md)                         | A model server that speaks the OpenAI API (Ollama, vLLM, LiteLLM), preferably inside the Kingdom |
| [AI chatbot](https://ispectra.gitbook.io/mutamad/site-building/ai.md#the-visitor-chatbot-preview) | The above, an embeddings model (`bge-m3`), and the `sqlite-vec` extension                        |
| [Google Analytics](https://ispectra.gitbook.io/mutamad/site-building/analytics.md)                | A GA4 property and a service-account key, and your data protection officer's approval            |
