Home > Article > Backend Development > Solve the problems encountered in nginx configuration php
This article mainly introduces the solutions to the problems encountered when configuring PHP with nginx. It has certain reference value. Now I share it with you. Friends in need can refer to it.
There is no problem when building on the local machine The problem persists after copying the nginx configuration to another host.
1.nginx error
*13776 connect() failed (111: Connection refused) while connecting to upstream, client: 122.114.199.248
At this time, check that the Alibaba Cloud configuration and firewall are normal.
At this time, I found that the connection cannot be connected using telnet.
View port monitoring status
ss -nat
LISTEN 0 128 128 127.0.0.1:9000
php-fpm only listens to 127.0. 0.1
Refer to https://www.cnblogs.com/jonsea/p/5522018.html to configure php-fpm, and it will be normal after restarting.
The above is the detailed content of Solve the problems encountered in nginx configuration php. For more information, please follow other related articles on the PHP Chinese website!