Articles on: Web Hosting
This article is also available in:

How to deploy a Laravel or Symfony site?

On your hosting, you must place your files in the public_html directory, but this causes issues with frameworks like Symfony or Laravel that require their files to be placed in a public directory.


There is a simple method to use Symfony or Laravel with your hosting:


  • Connect via SSH or go to the Terminal in cPanel
  • Make sure you are at the root of your hosting:

cd ~

  • Rename the public_html directory using the following command:

mv public_html public_html_bak

  • Create a symbolic link between your public directory and public_html using the following command (adapt /home/myuser/myapp/public according to your installation):

ln -s /home/myuser/myapp/public public_html

ea-php82 /usr/local/bin/composer install

You can also create an alias in your shell if you want to call composer using only the composer command.


Tip: if you are on a plan where SSH access is not included, our technical support team will do it for you. Simply let us know the path to your public directory.

Updated on: 14/02/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!