I deploy Symfony3 project on server (Ubuntu 16.04, PHP 7.0.18).
I use VestaCP, create symlinl public_shtml -> www/web
and place project in www
directory.
I execute following commands:
- git clone
- composer install
- setfacl (from official Symfony documentation)
In error log I see that messages:
PHP Warning: require(): open_basedir restriction in effect. File(/home/admin/web/project/www/app/autoload.php) is not within the allowed path(s): (/home/admin/web/project/public_shtml:/home/admin/tmp) in /home/admin/web/project/www/web/app.php on line 6
PHP Warning: require(/home/admin/web/project/www/app/autoload.php): failed to open stream: Operation not permitted in /home/admin/web/project/www/web/app.php on line 6
PHP Fatal error: require(): Failed opening required '/home/admin/web/project/www/web/../app/autoload.php' (include_path='.:/usr/share/php') in /home/admin/web/project/www/web/app.php on line 6
What do I doing wrong?