
linux配置nginx+php,但是无法访问PHP文件,能访问html 100
如题,直接就报错502,下面是页面+nginx错误日志和nginx的php设置求大神!!!nginx错误日志:2017/12/1612:21:50[error]2018#...
如题,直接就报错502,下面是页面+nginx错误日志和nginx的php设置求大神!!!
nginx错误日志:
2017/12/16 12:21:50 [error] 2018#0: *84 open() "/usr/local/nginx/html/License/index.php" failed (2: No such file or directory), client: 23.83.240.10, server: localhost, request: "GET //License/index.php HTTP/1.1", host: "47.52.201.183:80" 展开
nginx错误日志:
2017/12/16 12:21:50 [error] 2018#0: *84 open() "/usr/local/nginx/html/License/index.php" failed (2: No such file or directory), client: 23.83.240.10, server: localhost, request: "GET //License/index.php HTTP/1.1", host: "47.52.201.183:80" 展开
展开全部
nginx调用PHP有sock方式和端口方式
1、确认nginx已经调用了php;
2、先确认你的nginx使用什么方式调用PHP;
3、如果使用端口方式,端口对不对应,如果使用SOCK方式,那么路径对不对;
1、确认nginx已经调用了php;
2、先确认你的nginx使用什么方式调用PHP;
3、如果使用端口方式,端口对不对应,如果使用SOCK方式,那么路径对不对;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询