Lighttpd PHP FastCGI Configuration – Debian 5.0 Lenny

By , February 19, 2009 4:47 PM

After installing a fresh copy of Debian 5.0 on my mini x86 server (howto for that still being worked on), I needed to get PHP with FastCGI, MySQL and Lighttpd installed.

Here’s an excellent, short and to-the-point guide on getting FastCGI configured for Lighttpd:

http://www.cyberciti.biz/tips/lighttpd-php-fastcgi-configuration.html

Of course, this is assuming PHP, MySQL (if required) and Lighttpd are already installed:

  apt-get install php5-cli php5-cgi lighttpd mysql-server

I also needed to reconfigure MySQL for a low memory machine (112MB). I did that by doing the following:

Replace /etc/mysql/my.cnf with the my-small.cnf found at /usr/share/doc/mysql-server-5.0/examples/

  cp /usr/share/doc/mysql-server-5.0/examples/my-small.cnf /etc/mysql/my.cnf

Edit your new my.cnf and do the following:

Uncomment skip-bdb
Add a new line beneath it for skip-innodb

Finally, restart your mysql server:

  sh/etc/init.d/mysql restart

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Panorama Theme by Themocracy