Lighttpd Install Howto with yum on CentOS

In this mini how to, we shall look at installing Lighttpd on a CentOS server. Lighttpd as its name implies is a light https web server. It is amazingly fast, secure and is optimised for high performance work loads. The server uses very little memory compared to many other web servers and also low on cpu load. It has the following advantages:

  • FastCGI
  • CGI
  • Auth
  • Compression
  • URL rewrite.

Enable EPEL CentOS repository

The lighttpd server is not part of default CentOS or RHEL based system. To install lighttpd using the yum command, first grab the latest epel release file, enter:

wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm

A sample output is as follows:

--2014-02-23 12:24:52--  http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm
Resolving epel.mirror.net.in... 120.88.47.14, 2401:4800:2121:c0:ff:ee:ee:2
Connecting to epel.mirror.net.in|120.88.47.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-redhat-package-manager]
Saving to: “epel-release-6-8.noarch.rpm”
 
100%[==========================================================================================>] 14,540      54.6K/s   in 0.3s
 
2014-02-23 12:24:53 (54.6 KB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540]

CentOS Linux install Lighttpd web-server

Type the following yum command:

# yum install lighttpd lighttpd-fastcgi lighttpd-mod_geoip