Symfony Frequently Asked Questions (FAQ)

Last updated 31st March 2021

How do I store my session files?

If you get the following error:

failed: Read-only file system (30) in /app/app/cache/dev/classes.php line 420

that's because Symfony is trying to write into: /var/lib/php5/ which is read-only.

The solution is to mount a sessions folder into Web PaaS and write sessions in that folder.

Simply edit your and add a mounts there:

        source: local
        source_path: sessions

Then, add this line at the top of your app_dev.php:

ini_set('session.save_path', __DIR__.'/../app/sessions' );

Why does my newly cloned Symfony install throw errors?

You may encounter the WSOD (white screen of death) when you first clone a new Symfony project from your platform. This is likely because of missing dependencies.

You will need to install composer first and then run the following command:

cd my_project_name/
composer install

Why do I get 'Permission denied' in a deploy hook?

If you get the following error during a deploy hook:

Launching hook 'app/console cache:clear'.
/bin/dash: 1: app/console: Permission denied

This means that you might have committed the executable file (in this case app/console) without the execute bit set.

Run this to fix the problem:

chmod a+x app/console
git add app/console
git commit -m "Fix the console script execute permission."

Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices incl. VAT may vary according to the customer's country of residence
(by default, the prices displayed are inclusive of the UK VAT in force).