静态文件可以访问,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的配置文件截图我看看。
00
相似问题