Welcome! Log In Create A New Profile

Advanced

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

GASPARD Kévin
February 20, 2013 05:56PM
> 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

srw-rw-rw- 1 root root 0 Feb 20 14:08 /var/run/php5-fpm.sock

>
> should show you that it really is there.

I forget to say, but yes it's here and I've runned the daemon php-fpm.

>
>> # 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.

Yeah, also forget to say that but this configuration was first used on
CentOS 6 and it worked well.

>
>> 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.

Seems logical because I ask to use /var/run/php5-fpm.sock instead of the
commented value in /etc/nginx/nginx.conf, right?

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

I've pasted a working vhost configuration file and pasted an error on an
other configuration file but they are identical except for document root
and domain. To create this file I've used 'cp' and modified it.

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

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

And no output for 'nginx -s reload'.

Thanks for your answer.

Cordially, Koshie

--
Sorry for my english, I'm trying the best in each e-mail writing. Tell me
if I'm not clear enough.
This mail account is only for list reading, to contact me send an e-mail
at kevingaspard@koshie.fr

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

502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 20, 2013 05:30PM

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

Francis Daly February 20, 2013 05:42PM

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

GASPARD Kévin February 20, 2013 05:56PM

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

Francis Daly February 20, 2013 06:14PM

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

GASPARD Kévin February 20, 2013 06:38PM

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

Francis Daly February 20, 2013 06:56PM

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

GASPARD Kévin February 21, 2013 04:26AM

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

Wolfsrudel February 21, 2013 05:17AM

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

Wolfsrudel February 21, 2013 05:26AM

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

GASPARD Kévin February 21, 2013 06:10AM

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

Mark Alan February 21, 2013 07:48AM

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

GASPARD Kévin February 21, 2013 08:10AM

Re: nginx + php5-fpm on Debian

Mark Alan February 21, 2013 03:08PM

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

w.b March 01, 2013 08:56AM

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

GASPARD Kévin February 21, 2013 06:14AM

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

Francis Daly February 21, 2013 08:52AM

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

GASPARD kévin March 02, 2013 02:02PM

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

GASPARD kévin March 02, 2013 02:16PM

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

GASPARD kévin March 03, 2013 07:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready