Comments on Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On Ubuntu 12.04
Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On Ubuntu 12.04 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an Ubuntu 12.04 server with PHP5 support (through PHP-FPM) and MySQL support. PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. I use PHP-FPM in this tutorial instead of Lighttpd's spawn-fcgi.
5 Comment(s)
Comments
Nice How-to but, looks like we are missing something like "apt-get install php5-cgi" to have the full thing working.
Hello, thank to all for your tuto
I'm french and don't understand this:
uncomment the line cgi.fix_pathinfo=1
in french there is no translation right for the word "uncomment"
what to do, delete the line or change 1 into O
thank to answer this for me
This is all fine and dandy, except that by default (on Ubuntu 12.04) it's configured to listen on a socket (/var/run/php5-fpm.sock) rather than on 127.0.0.1:9000. Spent a bunch of time cursing all the gods that ever lived trying to figure this one out ;)
Assuming the default php5-fpm configuration that comes with Ubuntu 12.04, you can make it work with the following fastcgi configuration:
fastcgi.server += ( ".php" => (( "socket" => "/var/run/php5-fpm.sock", "broken-scriptfilename" => "enable" )) )
Hi, If you recieve the following error or you start having 503 errors:
backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
--
You will need to comment out the following lines in /etc/php5/fpm/pool.d/www.conf
# BEFORE #
[...]
;listen.owner = www-data
;listen.group = www-data
;listen.mode = 0660
[...]
# AFTER #
[...]
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
[...]
Regards