Contents
Symfony is a structured PHP framework for large applications and APIs, and its components sit underneath many other projects, Laravel included. It does assume you have a command line: installing packages, warming the cache and running migrations all happen through composer and bin/console. So SSH is the first thing to look for in Symfony hosting.
Which versions run here?
| Version | Requires | On ArabyHost |
|---|---|---|
| Symfony 6.4 LTS | PHP 8.1 or newer | Runs |
| Symfony 7.4 LTS | PHP 8.2 or newer | Runs; the recommended choice with PHP 8.3 |
| Symfony 8.x | PHP 8.4 or newer | Not yet: available versions are 8.1 to 8.3 |
Starting a new project? Pin 7.4 explicitly:
composer create-project symfony/skeleton:"7.4.*" myapp
What Symfony needs in production
- PHP extensions: Ctype, iconv, PCRE, Session, SimpleXML and Tokenizer, plus
intlfor translations. Check withphp -m. - Composer to install packages, and
composer dump-env prodto compile.envinto a faster.env.local.php. - Database: Doctrine with MySQL or MariaDB, with the correct
serverVersioninDATABASE_URL. - Document root: only
public, with the.htaccessfile fromsymfony/apache-pack. - The
varfolder: writable, for cache and logs. - Assets:
asset-map:compilefor AssetMapper, ornpm run buildfor Webpack Encore.
Why AI/Developer plans?
They include SSH jailed in CageFS, Composer 2, Git, Node.js 20 and 24 for building assets, and cron for workers and scheduled tasks. You run bin/console directly and pull updates from GitHub. In theory you could upload a ready-built Symfony app to shared hosting after installing vendor locally, but without SSH you can’t run migrations or clear the cache on each release, so we don’t recommend it.
Deploying, in short
- Connect over SSH (how) and clone the project from GitHub into
/home/USER/myapp, or link it in Git Version Control as in the Git deployment guide. - Put
APP_ENV=prod,APP_SECRETandDATABASE_URLin.env.local, withserverVersionset to whateverSELECT VERSION();returns. - Run the deploy commands:
composer install --no-dev --optimize-autoloader
composer dump-env prod
php bin/console doctrine:migrations:migrate --no-interaction
php bin/console asset-map:compile # only if you use AssetMapper
php bin/console cache:clear
- Point the domain at
myapp/public, or makepublic_htmlresolve to it.
General steps for PHP projects are in the PHP site deployment guide. Keep secrets out of the committed .env; they belong in .env.local on the server (environment variables).
Messenger and background work
Without root you can’t install Supervisor, but cron plus flock does the same job:
* * * * * cd /home/USER/myapp && flock -n var/worker.lock php bin/console messenger:consume async --time-limit=3600 >> var/log/worker.log 2>&1
Use the doctrine transport for queues: it stores messages in the database and needs no Redis.
What every account includes
- LiteSpeed, and each account isolated in CloudLinux CageFS with its own resource limits (LVE).
- Free SSL issued automatically, daily JetBackup backups and Imunify360 security.
- The Araby AI assistant in the panel, which reads error logs and explains the fix, plus support in Arabic.
- Claude Code and Codex over SSH, and deploys from Claude or Cursor through Araby MCP.
Limits to know
- Symfony 8 isn’t supported yet because it requires PHP 8.4.
- No root access, no Docker and no per-account Redis.
- Mercure needs a permanent hub listening on its own port, which isn’t available here.
- Resources are limited per plan, and
composer updateis memory-hungry. Run it locally and commitcomposer.lock(Composer memory error).
On ArabyHost
Pick one of the AI/Developer plans, add your SSH key in the panel, and deploy your Symfony 7.4 app with the commands above. If it runs on another host today, ask for free migration help.
FAQ
Which Symfony version should I use on ArabyHost?
Symfony 7.4 LTS on PHP 8.3, which is supported for years to come. 6.4 LTS also runs, on PHP 8.1 and up. Symfony 8 requires PHP 8.4, and the versions available here are 8.1 to 8.3.
Do I need symfony/apache-pack?
Yes. It adds an .htaccess file to public that routes every request to index.php, and LiteSpeed reads that file just as Apache does.
How do I run Symfony Messenger without Supervisor?
Run messenger:consume from cron every minute, wrapped in flock and with --time-limit. The worker runs for an hour, exits cleanly, and cron starts a fresh one; two copies never run at once.