Hi all,
I’m just trying to configure nginx to use use php, but it seemed too
complicated.
Why is it so complicated to tell nginx to use php-cgi interpreter [1]?
When compared to mongoose it is just a matter of setting the
cgi_interpreter variable [2] to the path of php-cgi?
[1] -
[2] - Mongoose :: Documentation
Best regards,
–
Thiago F.
On Tue, Apr 21, 2015 at 11:59 PM, Thiago F. [email protected]
wrote:
Hi all,
I’m just trying to configure nginx to use use php, but it seemed too
complicated.
Why is it so complicated to tell nginx to use php-cgi interpreter [1]?
When compared to mongoose it is just a matter of setting the
cgi_interpreter variable [2] to the path of php-cgi?
That guide seems obsolete. Use the php5-fpm package,
looks like a more up to date guide (skip the mysql part if it isn’t
needed).
On Tue, Apr 21, 2015 at 9:02 PM, Richard S.
[email protected] wrote:
That guide seems obsolete. Use the php5-fpm package,
looks like a more up to date guide (skip the mysql part if it isn’t needed).
Hey! Thanks a lot! I was able to configure it following this tutorial.
My nginx conf ended up being like the attached file.
The only thing I have had to change from it was the
unix:/var/run/php5-fpm.sock back to 127.0.0.1:9000.
From /usr/local/nginx/logs/error.log:
2015/04/21 23:25:47 [crit] 12184#0: *1 connect() to
unix:/var/run/php5-fpm.sock failed (13: Permission denied) while
connecting to upstream, client
: 192.168.0.101, server: tfarina.org, request: “GET /info.php
HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host:
“tfarina.org”