Opened 11 years ago

Closed 11 years ago

#402 closed defect (invalid)

PHP not working on Nginx

Reported by: Sunil Gamey Owned by:
Priority: major Milestone:
Component: nginx-package Version: 1.3.x
Keywords: Cc: sunil.game@…
uname -a:
nginx -V: 1.2.6

Description

I have Installed Nginx on Ubuntu server and also did all necessary changes in config and default file.

Trying to execute PHP file but hard luck. while executing file it will be downland.

http://192.64.181.142/phpinfo.php

Please correct me.

Awaiting your feedback.

Thanks

Change History (1)

comment:1 by Maxim Dounin, 11 years ago

Resolution: invalid
Status: newclosed

By itself nginx doesn't execute php. You have to run a php backend (usually php-cgi in FastCGI mode or php-fpm) and configure nginx to pass appropriate requests to it. See http://wiki.nginx.org/NginxConfiguration#PHP_via_FastCGI for various ways to do it.

Please use mailing list for further questions.

Note: See TracTickets for help on using tickets.