I donβt think the solution will work anyway, because you will see an error message in the error log file.
The solution was much simpler than I thought.
just open the following path to your php5-fpm
sudo nano /etc/php5/fpm/pool.d/www.conf
or if you are the root administrator
nano /etc/php5/fpm/pool.d/www.conf
Then find this line and uncomment it:
listen.allowed_clients = 127.0.0.1
This solution will allow you to use listen = 127.0.0.1:9000 in your vhost blocks
: fastcgi_pass 127.0.0.1:9000;
after making changes all you need to do is restart or restart Nginx and Php5-fpm
php5-fpm
sudo service php5-fpm restart
or
sudo service php5-fpm reload
Nginx
sudo service nginx restart
or
sudo service nginx reload
From the comments:
Also a comment
;listen = /var/run/php5-fpm.sock
and add
listen = 9000
Digital site Jun 13 '14 at 5:30 a.m. 2014-06-13 05:30
source share