Lighttpd Centos

Lighttpd is the web server of choice for low memory VPS applications.

Lighttpd is not included in the base CENTOS Repo, so you will need to install the RPMFORGE repo. then

yum install lighttpd lighttpd-fastcgi

Then setup some dir’s

mkdir /var/run/lighttpd
touch /var/run/lighttpd/php-fastcgi.socket
chown -R lighttpd:lighttpd /var/run/lighttpd/
nano /etc/php.ini

edith /etc/lighttpd/lighttpd.conf and either add or remove # to


from the server modules

add access to php cgi with the following in the .conf file also

fastcgi.server = ( “.php” =>
( “localhost” =>
“socket” => “tmp/php-fastcgi.socket”,
“bin-path” => “/usr/bin/php-cgi”

info sourced from

some good references for setting up .conf file with virtual hosts

Comments are closed.