How to Install Lighttpd Web Server on Ubuntu 16.04

r00t January 31, 2018

Install Lighttpd Web Server on Ubuntu 16.04

In this tutorial we will show you how to install Lighttpd Web Server on Ubuntu 16.04. We will also install and configure its prerequisites. Lighttpd is an open source web server which is secure, fast, compliant, and very flexible and is optimized for high-performance environments. It uses very low memory compared to other web servers, small CPU load and speed optimization making it popular among the server for its efficiency and speed. Its advanced, feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) makes lighttpd the perfect webserver-software for every server that suffers load problems.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Lighttpd Web Server on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Lighttpd on Ubuntu.

Lighttpd is available as an Ubuntu package. Therefore, we can install it directly with apt from the Ubuntu package repository:

apt-get -y install lighttpd

Once the packages are installed, you can run the Lighttpd server also enable it to automatically start at boot time using the following commands:

systemctl start lighttpd.service
systemctl enable lighttpd.service

Step 3. Configuring Lighttpd.

If we need to configure our lighttpd web server further as our requirements, we can make changes to the default configuration file ie /etc/lighttpd/lighttpd.conf.

Lighttpd’s default document root is /srv/www/lighttpd, you can use this or change it by editing the configuration file /etc/lighttpd/lighttpd.conf.

Step 4. Testing Lighttpd.

To make sure everything installed correctly we will now test Lighttpd to ensure it is working properly. Open up any web browser and then enter the following into the web address:

http://localhost/ or http://your.ip.addr.ess

Congratulation’s! You have successfully install and configured Lighttpd on your Ubuntu 16.04 server. Thanks for using this tutorial installing Lighttpd Web Server on Ubuntu 16.04 LTS (Xenial Xerus) system.

The Tags:

Leave a Comment

Comments are closed.