我试图在Fedora 26上设置我的开发工作站。
所以我安装了Nginx,php-fpm和MySQL 5.7。我还更改了在/etc/php-fpm.d/www.conf
我将新的laravel安装在/var/www/html/
上,并将/var/www/html
的所有者更改为运行php-fpm的人。
我设置了我的nginx配置
server {
server_name laravel5.dev;
access_log /var/log/nginx/laravel5.access.log;
error_log /var/log/nginx/laravel5.error.log;
root /var/www/html/laravel5/public;
location / {
try_files $uri /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
因此。主页运行正常。我从laravel安装基本身份验证。当我进入/login
页面时。我收到一些错误,laravel.log是permission denied
。我很确定我将其权限设置为777,目录的所有者是php-fpm的所有者。
我错过了什么吗?提前谢谢。