您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

centos系统下nginx无法解析php

2024/4/30 20:00:01发布19次查看
问题:
通过nginx解析php报错,提示file not found.
解决思路:
查看错误日志:
[root@lnmp ~]# tail /usr/local/nginx/logs/error.log
(推荐教程:centos使用教程)
解决方法如下:
在nginx配置文件中找到定义调用脚本文件的地方
将代码:
fastcgi_param script_filename /scripts$fastcgi_script_name;
修改成:
fastcgi_param script_filename $document_root$fastcgi_script_name;
最后重启nginx即可。
相关视频教程推荐:linux视频教程
以上就是centos系统下nginx无法解析php的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product