yum install lighttpd

systemsautomation
systemsautomation used Ask the Experts™
on
Hello

I am trying to install Lighttpd on Centos 5. When I write yum install lighttpd it does not find package lighttpd. I think this is due to missing repositories but don't know how to solve this issue?


[root@VPS124 ~]# yum install lighttpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.linux.duke.edu
 * base: mirror.atlanticmetro.net
 * extras: ftp.lug.udel.edu
 * updates: ftp.lug.udel.edu
addons                                                   |  951 B     00:00    
base                                                     | 2.1 kB     00:00    
extras                                                   | 2.1 kB     00:00    
updates                                                  | 1.9 kB     00:00    
Setting up Install Process
No package lighttpd available.
Nothing to do
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
lighthttpd is in EPEL repository, you have to configure it first:

http://enhancedlinux.com/2010/01/01/configure-epel-repository-centos-5-x/

Commented:
There is no CentOS package for lighttpd. There is, however, a package for RedHat, which will work on CentOS, at ftp://195.220.108.108/linux/dag/redhat/9/en/i386/dag/RPMS/lighttpd-1.4.22-2.rh9.rf.i386.rpm.
But it has dependencies which will require other RedHat packages that might collide with CentOS packages. So, either
1. you know what you're doing or
2. you look for another distribution or
3. you decide not to use lighttpd or
4. you compile it yourself from sources.
Team Lead
Commented:
Lighttpd is not available from the official CentOS 5.0 repositories, but it is available in RPMforge repositories. Install RPMforge package using following command:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Now, you can use yum to install Lighthttpd:

yum install lighttpd

Create the system startup links for Lighttpd

chkconfig --levels 235 lighttpd on

Start Lighthttpd using following command:
 
/etc/init.d/lighttpd start

- Kailash

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial