关于nginx 不能解析php

今天在服务器下源码安装了 mysql php  nginx 但是发现nginx不支持php ,还曝出各种错误,最后解决方式是在nginx配置文件中添加:
location ~ .*\.php?$
        {
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
        }

这个问题在以前的环境配置当中也遇到过,现在再记录在此,希望以后遇到处理能够迅速些。

你可能感兴趣的:(nginx,PHP)