I installed a new Laravel project with composer on linux with nginx server, but when I visit the project in browser,it shows an http 500 error.this was the php error log from the nginx.
[01-Feb-2018 19:38:50] WARNING: [pool www] child 4475 said into stderr: "NOTICE: PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/blog/vendor/autoload.php) is not within the allowed path(s): (/home/wwwroot/blog/public/:/tmp/:/proc/) in /home/wwwroot/blog/public/index.php on line 24"
[01-Feb-2018 19:38:50] WARNING: [pool www] child 4475 said into stderr: "NOTICE: PHP message: PHP Warning: require(/home/wwwroot/blog/vendor/autoload.php): failed to open stream: Operation not permitted in /home/wwwroot/blog/public/index.php on line 24"
[01-Feb-2018 19:38:50] WARNING: [pool www] child 4475 said into stderr: "NOTICE: PHP message: PHP Fatal error: require(): Failed opening required '/home/wwwroot/blog/public/../vendor/autoload.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/blog/public/index.php on line 24"
I have googled this error,but none resolved my problem.Any one could help me?
(edit : syntaxe)