Error with app/autoload.php

By Igor A. Kamyshev

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?

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273