Welcome! Log In Create A New Profile

Advanced

Re: PHP with FPM on Gentoo

Silvio Siefke
April 03, 2012 06:48AM
Hello,

On Tue, 3 Apr 2012 04:02:14 -0400 (EDT)
"locojohn" <nginx-forum@nginx.us> wrote:

> mkdir -p /var/run/fastcgi/php-fpm.sock
>
> php-fpm.conf:
>
> ;listen = 127.0.0.1:9000
> ;listen.allowed_clients = 127.0.0.1
> listen = /var/run/fastcgi/php-fpm.sock
> listen.owner = nginx
> listen.group = nginx
>
> nginx.conf:
>
> location \.php$ {
> include fastcgi_params;
> fastcgi_pass unix:/var/run/fastcgi/php-fpm.sock;
> }

Thx for advice. But will not run. When i start nginx it come only

gentoo-desk ~ # /etc/init.d/nginx start
* Checking nginx' configuration ...
nginx: [emerg] invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx: [emerg] invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
nginx: configuration file /etc/nginx/nginx.conf test failed
* failed, please correct errors above [ !! ]
* ERROR: nginx failed to start


<error_log>
2012/04/03 12:44:52 [emerg] 2062#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
2012/04/03 12:44:52 [emerg] 2063#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
2012/04/03 12:45:02 [emerg] 2073#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
2012/04/03 12:45:02 [emerg] 2074#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
</error_log>


Mmh can it be that nginx and / or php not right build with emerge?



Regards
Silvio

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

PHP with FPM on Gentoo

Silvio Siefke April 02, 2012 06:14PM

Re: PHP with FPM on Gentoo

locojohn April 03, 2012 04:02AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 03, 2012 06:48AM

Re: PHP with FPM on Gentoo

Rainer Duffner April 03, 2012 06:58AM

Re: PHP with FPM on Gentoo

locojohn April 03, 2012 06:59AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 03, 2012 07:02AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 03, 2012 05:40PM

Re: PHP with FPM on Gentoo

Silvio Siefke April 04, 2012 05:46AM

Re: PHP with FPM on Gentoo

locojohn April 04, 2012 07:46AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 04, 2012 04:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready