php-fpm安装完成,nginx安装完成

netstap -ntl|grep 9000

发下端口正常开启

iptables -L

返现9000端口已经开放

ps -aux|grep nginx

发下nginx进程正常运行

但是就是静态页面可以访问,php动态页面无法访问,报错'file not found'

最后发现问题,修改nginx.conf

fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;

改成

fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

一切OK了

相关文章:

  • 2023-03-19
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-06-07
  • 2021-04-09
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案