静态文件可以访问,php文件不行

来源:2-3 Nginx和PHP如何配合工作

DarrenS

2022-01-11

http://localhost:8080/a.php 还是显示如下:

An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.

================================
nginx % lsof -i :9000

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
php-fpm 17560 darren 8u IPv4 0xdb8b7dd833ccc625 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 17561 darren 5u IPv4 0xdb8b7dd833cea5d5 0t0 TCP localhost:cslistener->localhost:50093 (CLOSED)
php-fpm 17561 darren 9u IPv4 0xdb8b7dd833ccc625 0t0 TCP localhost:cslistener (LISTEN)
php-fpm 17562 darren 5u IPv4 0xdb8b7dd833ce8625 0t0 TCP localhost:cslistener->localhost:50090 (CLOSED)
php-fpm 17562 darren 9u IPv4 0xdb8b7dd833ccc625 0t0 TCP localhost:cslistener (LISTEN)

=======================================
php-fpm也是已经开启状态的,不知道是什么原因不行

写回答

1回答

singwa

2022-02-07

您好。应该是您Nginx 配置没有配置好。把ng的配置文件截图我看看。

0
0

全流程开发 TP6.0实战高并发电商服务系统

一课就能掌握TP6.0基础及运用,打造完整高并发的电商后端项目

1458 学习 · 1310 问题

查看课程