lighttpd is a free and open source web server known for its speed. It is developed by Jan Kneschke, a German Software Developer. The lighttpd project was started in 2003. This tutorial will explain how to install lighttpd on Fedora 13. It is possible that lighttpd is compatible with previous versions of Fedora.

  • 1.1 lighttpd Installation

To install lighttpd, open the terminal (Applications >> System Tools >> Terminal), then run this command:

    su -c 'yum install lighttpd'

  • 1.2 Start/Stop lighttpd

To start lighttpd server, then run this command:

    su -lc 'service lighttpd start'

To stop lighttpd server, then run this command:

    su -lc 'service lighttpd stop'
To launch lighttpd server automatically at computer startup, then run this command:

    su -lc 'chkconfig lighttpd on'

To check if lighttpd server is running, then open this address: http://localhost/.

  • 1.3 Files and Folders to Know

- /etc/lighttpd: The directory contains config files.

    - /etc/lighttpd/lighttpd.conf: The main config file. It's highly recommended not to modify this file.

    - /etc/lighttpd/conf.d: The directory contains extra config files.

- /var/log/lighttpd: The directory contains logs.

    - /var/log/lighttpd/access.log: Logs tracing all pages handled by the server.

    - /var/log/lighttpd/error.log: Error logs.

- /var/www/lighttpd: The directory contains default site data.

After installing a module or modifying a config file, it's necessary to restart the service:

    su -lc 'service lighttpd restart'

Post a Comment