nginx无法启动php如何解决 发布时间:2024/12/05 nginx无法启动php如何解决?下面编程教程网小编给大家简单介绍一下解决方法! 解决方法如下: 找到nginx配制文件位置是/etc/nginx/sites-available/default location ~ \.php$ { root /var/www/html; include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } 复制代码 修改完成nginx配制文件后,要重启nginx才生效 /etc/init.d/nginx restart 复制代码 以上是编程学习网小编为您介绍的“nginx无法启动php如何解决”的全面内容,想了解更多关于 php入门 内容,请继续关注编程基础学习网。