Welcome! Log In Create A New Profile

Advanced

Need Help setting up Nginx wit PHP-fpm

Posted by Rustypredator 
Need Help setting up Nginx wit PHP-fpm
March 21, 2014 11:06AM
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
Attachments:
open | download - default.conf (1.2 KB)
open | download - error.log (2.2 KB)
Re: Need Help setting up Nginx wit PHP-fpm
March 24, 2014 04:27AM
Nginx is now running with the PHP Extension.
The only problem was that i forgot to write the path to the web-files in front of "$fastcgi_script_name"
and i changed the pass to the ip instead of the socket
Thats it.

New default.conf is attatched, if anybody has the same problem as i had.

Thanks for your help.
Attachments:
open | download - default.conf (1.2 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
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