Comments on Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 11.10
Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 11.10 Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on an Ubuntu 11.10 server with PHP5 support (through PHP-FPM) and MySQL support.
3 Comment(s)
Comments
And :
sudo -s
??
http://www.discusswire.com/setting-php-fastcgi-nginx-dont-trust-tutorials-check-configuration/
PHP-fgm will not run on port 9000 by default on every configuration.
On my system it used a unix socket. You can check whether it uses TCP or a unix socket and where it is found in the file /var/run/php5-fpm.sock; I had to change the corresponding line on the site nginx configuration to
fastcgi_pass unix:/var/run/php5-fpm.sock;You can check where does your php-fpm listen by checking the line starting with "listen " in the file /etc/php5/fpm/pool.d/www.conf .