Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Need Help setting up Nginx wit PHP-fpm

$
0
0
Im setting up an Nginx server with a simple wordpress installation, just to try out Nginx and see if it is better than apache.
But i can't figure out how to get the newest version running with php-fpm.
I get it working with v. 1.2.1 of Nginx but i dont want to have a version of Nginx wich is almost two years old.
As you can see in the error.log of Nginx it is trying to connect to php-fpm through the socket (as i told it to)
but is getting no response.
PHP-fpm is listening on /var/run/php-fpm.sock and its error.log is showing no errors.
As you would expect when php-fpm is'nt responding (who knows why) i get no php output.
Normal .html files do display as of that fact, im pretty sure its a problem with the communication between Nginx and php-fpm.
If you know what i have done wrong, please reply.

default.conf and Nginx error.log are attatched

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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