Comments on Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Debian Wheezy
Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Debian Wheezy 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 a Debian Wheezy server with PHP5 support (through PHP-FPM) and MySQL support (LEMP = Linux + nginx (pronounced "engine x") + MySQL + PHP).
4 Comment(s)
Comments
Very nice post Mr. Timme. I have just upgraded from CGI without any issues. Ty!
For a German How-To with a more detailed instruction (subdomains, multiple sockets etc.) see http://www.debinux.de/2013/11/nginx-php-fpm-multiple-sockets-mysql-und-subdomains-debian-wheezy/
This is a really good article and very informative. A good follow up to this would be to build NGiNX from source, and 'harden' it for the production environment.
You guide does nto work for me. The php config for nginx is not quite right.
The PHP block in nginx.conf should look like this to make it work
### PHP BLOCK ### location ~ \.php?$ { fastcgi_keep_conn on; try_files $uri =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_hide_header X-Powered-By; # fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/d.stavrovski.net.socket; # fastcgi_pass unix:/var/run/hhvm/hhvm.sock; }