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

mod_fastcgi

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

http://davidwinter.me.uk/articles/2008/06/22/lighttpd-and-php-on-centos-5/

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

http://www.cyberciti.biz/faq/howto-lighttpd-virtualhost-configuration/

http://www.linux.com/archive/feed/51673

Comments are closed.