centos7.0 可以访问HTML文件,不能访问PHP文件,因为php-fpm没有扩展包

解决方法 :https://blog.csdn.net/ityang_/article/details/53980190

nginx调用PHP有sock方式和端口方式

1、确认nginx已经调用了php;
2、先确认你的nginx使用什么方式调用PHP;
3、如果使用端口方式,端口对不对应,如果使用SOCK方式,那么路径对不对;

原文地址:https://www.cnblogs.com/lxwphp/p/8916323.html