big tree

1884 经验值

composer安装过程中报了个错,好像不影响使用,[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'https://github.com/sebastianbergmann/phpunit.git' '/var/www/la
ravel/vendor/phpunit/phpunit' && cd '/var/www/laravel/vendor/phpunit/phpunit' && git remote add comp
oser 'https://github.com/sebastianbergmann/phpunit.git' && git fetch composer" exceeded the timeout
of 300 seconds.
又重新给了权限,还是不行

http error 500
错误日志:*4 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/laravel/bootstrap/autoload.php on line 17
这是因为没有把/var/www/laravel/ 给到nginx? 但我已经按照视频执行了sudo chown -R www-data:www-data /var/www/laravel/

写上这个会报这个错 directive "location" has no opening "{" in /etc/nginx/sites-enabled/default:62

/etc/nginx/sites-available/default
location ~ \.php${

    try_files $uri /index.php =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/php7.0-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
}

是这个吗?

这样做会在403的基础上自动下载一个文件

3个地方的权限都给完并重启nginx之后的错误日志:directory index of "/var/www/laravel/" is forbidden, client: , server: _, request: "GET / HTTP/1.1", host: ""

还是不行,我把root 修改回root /var/www/html 就会变回nginx欢迎页面 修改为root /var/www/laravel 就会403 这说明laravel这个项目没有权限?但我把3个要给的权限都来回试了n次了

403的问题解决了吗?能否告知一下解决方法?

也没用,我没git laravel项目的时候执行service nginx restart还是nginx的欢迎页面,一旦拉取到项目再重启nginx就会403

sudo chown -R :www-data /var/www/laravel
sudo chmod -R 775 /var/www/laravel/storage?
这个我给过

要怎么给?能写下执行命令吗?