Welcome! Log In Create A New Profile


NGINX and php-fpm -> HTML runs, php gives 502

October 23, 2013 10:13AM
apparently have some problems with it so I am not better .
Unfortunately, past attempts have brought nothing to use the information from other posts .
And so , I really hope that this one can help ^ ^

So, I have NGINX installed and php - fpm .

I call on the index.html , everything works .
I call on the index.php , I get back only n 502.

For various reasons which I will not name here on, is not the www directory www in / var / www but in /
then there are a host folder.
so :

/ www / devubuntu.loc
/ www / devubuntu.loc / index.html
/ www / devubuntu.loc / index_test.php

My default conf looks like this:

server {
listen 80;
server_name devubuntu.loc;

access_log /www/log/access/devubuntu.loc.access.log;
error_log /www/log/error/devubuntu.loc.error.log;

location / {
root /www/devubuntu.loc;
index index.html index.htm, index.php;

location ~ \.php$ {

root /www/devubuntu.loc;
#fastcgi_pass unix:/var/run/php**5**-fpm.sock;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

Does anyone here have an idea ?
Subject Author Posted

NGINX and php-fpm -> HTML runs, php gives 502

timofrenzel October 23, 2013 10:13AM

Re: NGINX and php-fpm -> HTML runs, php gives 502

Francis Daly October 23, 2013 10:40AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 214 on March 20, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready