Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: 502 bad gateway error with php5-fpm on Debian 7

$
0
0
On Wed, Feb 20, 2013 at 11:27:04PM +0100, GASPARD Kévin wrote:

Hi there,

> I'm using Nginx 1.2.1 on Debian Wheezy 64 bits, I want to host some
> personals website on my dedicated server. I've installed php5-fpm, looked
> at the configuration file which is /etc/php5/fpm/pool.d/www.conf and the
> "listen" parameters is '/var/run/php5-fpm.sock'.

So your fastcgi server is expected to be at /var/run/php5-fpm.sock.

ls -l /var/run/php5-fpm.sock

should show you that it really is there.

> # fastcgi_pass 127.0.0.1:9000;
> fastcgi_pass unix:/var/run/php5-fpm.sock;

This looks like it *used to* try to access 127.0.0.1:9000, but now it
accesses the expected socket.

> 2013/02/20 23:19:25 [error] 17211#0: *207 connect() failed (111:
> Connection refused) while connecting to upstream, client: 80.239.242.190,
> server: subdomain.koshie.fr, request: "GET /wp-admin/info.php HTTP/1.1",
> upstream: "fastcgi://127.0.0.1:9000", host: "blog.koshie.fr"

This says it *actually* tried to access 127.0.0.1:9000, and failed.

The nginx config you showed is not the one that the running nginx is
using when it created this log file.

Does the appropriate "nginx -t" show any problems? Does "nginx -s reload"
give any indication that it did not reload correctly?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>