Skip to content
By stack3 min read

Symfony hosting: the right version and how to deploy

Short answer

Symfony 7.4 LTS needs PHP 8.2 or newer and 6.4 LTS needs 8.1, plus Composer, a MySQL or MariaDB database and the domain pointed at public. On ArabyHost it fits the AI/Developer plans, which include SSH, Composer and Git. Symfony 8 requires PHP 8.4, which isn't available yet.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Which versions run here?
  2. What Symfony needs in production
  3. Why AI/Developer plans?
  4. Deploying, in short
  5. Messenger and background work
  6. What every account includes
  7. Limits to know
  8. On ArabyHost

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 intl for translations. Check with php -m.
  • Composer to install packages, and composer dump-env prod to compile .env into a faster .env.local.php.
  • Database: Doctrine with MySQL or MariaDB, with the correct serverVersion in DATABASE_URL.
  • Document root: only public, with the .htaccess file from symfony/apache-pack.
  • The var folder: writable, for cache and logs.
  • Assets: asset-map:compile for AssetMapper, or npm run build for 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

  1. 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.
  2. Put APP_ENV=prod, APP_SECRET and DATABASE_URL in .env.local, with serverVersion set to whatever SELECT VERSION(); returns.
  3. 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
  1. Point the domain at myapp/public, or make public_html resolve 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 update is memory-hungry. Run it locally and commit composer.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.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.