网站 FastCGI sent in stderr: "Unable to open primary script 排查案例

网站 FastCGI sent in stderr: "Unable to open primary script ,浏览器访问php页面404无法访问。

原因:php-fpm权限原因(这里以我的php-fpm为例)

vi /usr/local/php/etc/php-fpm.conf

 

service php-fpm restart #重启,这里以我的启动方式为例

更换用户和nginx.conf 文件中用户一至。

发表评论

您的邮箱地址不会被公开。