求助,访问php报404!
lnmp默认的用户是www我新增了一个用户yyy然后把php-fpm.conf里的用户修改成了yyy
把网站文件夹所属目录用户和用户组也改成了yyy
nginx.conf 的 user 也改成了 yyy yyy
但是我访问php文件就是404了。
nginx配置如下
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
*************
php-fpm.conf
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice
listen = /tmp/php-cgi.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = WzXL2rEE49PfE2ZJ
listen.group = WzXL2rEE49PfE2ZJ
listen.mode = 0666
user = WzXL2rEE49PfE2ZJ
group = WzXL2rEE49PfE2ZJ
pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 6
request_terminate_timeout = 100
request_slowlog_timeout = 0
slowlog = var/log/slow.log
[ 本帖最后由 nyfwan123 于 2016-12-21 15:05 编辑 ] 该的太乱了,你想改就得按原来的该,自己乱加的肯定不行,lnmp用的socket你上面用端口,SCRIPT_FILENAME 上也乱改的,具体看一下原配置文件
页:
[1]