How to install Lighttpd

nstalling Lighttpd :

Lighttpd is available via the RPMForge repositories

RPMForege i386 install

# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

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

RPMForge x86_64 or 64bit install

rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

Install lighttpd

# yum install lighttpd

Configure Lighttpd to startup automatically when system starts

# chkconfig lighttpd on

Create required run directory and give user lighttpd permission. (typically if your yum install of lighttpd server is not working this is the fix to the problem)

# mkdir -p /var/run/lighttpd/

# chown lighttpd /var/run/lighttpd

Check that Apache is not running

# service httpd status

httpd is stopped

Start lighttpd server

# service lighttpd start

Lighttpd Default Paths

Directory Root (where to put your website files): /srv/www/lighttpd/

Lighttpd Config File: /etc/lighttpd/lighttpd.conf

Lighttpd log files: /var/log/lighttpd/

Was this answer helpful?

 Print this Article

Also Read

Debian asking to insert cdrom to update?

open a terminalsunano /etc/apt/sources.listput a # in front of the line talking bout cd's (or...

How to unzip

Linux has both zip and unzip program. By default, these utilities not installed, To install...

Basic commands

How to use Linux:Linux is a Unix based operating system. Linux has a reputation as a very...

How to install Ioncube loader

What is IonCube ? Secure and license your PHP scripts with the ionCube PHP Encoder. Protect...

Add multiple IPs to a server

For example if you want to add a few IPs from the 111.123.123.1 class: [root@box ~]# cd...