PHP 5.3.6 on
Mac OS X 10.6 , but how can I run it with Nginx instead of Apache?
Previously I used
Apache but I would like to switch to
How can I install Nginx with PHP on Mac OS X?
This question came from our site for professional and enthusiast programmers.
The built in Apache2 with Mac OSX can run PHP by just uncommenting out this line in your httpd.conf file:
This won't work with Nginx
For Nginx you will have to compile it from source and configure your server files to use fastcgi.
You will also have to install php5-fpm or one of the old spawn-fcgi or php-cgi methods. The PHP 5.3.6 you installed won't work with Nginx.
I would go with php-fpm and you can get installation instructions on the wiki..