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