Installing lighttpd 1.4.18 in CentOS 5
Why lighttpd and not Apache? First of all, what is lighttpd? These four words can describe lighttpd - security, speed, compliance, and flexibility. lighttpd (pron. lighty) is a web server that has been optimized for high performance environment. With its very low memory footprint compared to other web servers, takes care of CPU load and advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) makes lighttpd the perfect web server software for every server that suffers load problems. Best of all lighttpd powers several popular Web 2.0 sites like YouTube, wikipedia and meebo.
Let’s get started. I am running CentOS 5 64-bit. You can’t get lighttpd from the official CentOS 5.0 repositories. We have to download lighttpd from DAG RPM Repository. Let’s download these packages lighttpd and lighttpd-fastcgi like this: -
wget -c http://dag.wieers.com/rpm/packages/lighttpd/lighttpd-1.4.18-1.el5.rf.x86_64.rpm
wget -c http://dag.wieers.com/rpm/packages/lighttpd/lighttpd-fastcgi-1.4.18-1.el5.rf.x86_64.rpm
Next, we can install the lighttpd and lighttpd-fastcgi like this: -
rpm -ivh lighttpd-1.4.18-1.el5.rf.x86_64.rpm lighttpd-fastcgi-1.4.18-1.el5.rf.x86_64.rpm
Next, we can update the runlevel information for system services so lighttpd start up automatically whenever the system boots like this: -
chkconfig --levels 235 lighttpd on
service lighttpd start
lighttpd’s default document root is at /srv/www/lighttpd and the configuration file is at /etc/lighttpd/lighttpd.conf on CentOS 5.
Simply create an index.html file and upload to the lighttpd document root. Now, point your favorite web browser to the lighttpd IP address and you will see the index.html file you created.
If you found these helpful, please contribute to help:
Source: lighttpd | DAG RPM Repository







A simple guy trying to put his name into the WWW place.
December 18th, 2007 at 10:47 am
will lighttpd has same features as apache? And does it comes with windows version?
December 19th, 2007 at 1:18 am
I’m doing Rails now and lighthttpd is working well .
Thanks for the how to bro
December 19th, 2007 at 1:33 am
Bro, CentOs has it in the extras repo which is normally disabled. Not too sure about the version.
This might help.
yum –enablerepo=extras search lighttpd
December 19th, 2007 at 1:41 am
Sorry, my bad. It’s DAG
sleepy la….hahaha