How to install Lighttpd web server on Ubuntu

Lighttpd is a free and open source secure, fast and lightweight web server software. It comes with FastCGI, CGI, Auth, Output-Compression, URL-Rewriting options.

Install Lighttpd on Ubuntu

Open the terminal application (ctrl+alt+t) and run below command.It will install the latest version of lighttpd on your system.

sudo apt install lighttpd -y

Start Lighttpd:

After the installation, you can start lighttpd web server using below command.

sudo systemctl start lighttpd

Test Lighttpd Installation:

Once Lighttpd is started, you can test it by opening any web browser and go to the below url if you are installing it locally.

http://localhost

You can also try with your server’s IP address or domain name.

Also Read:  PSequel Database Management Application

If you have installed Lighttpd correctly, You should see the following page:

Lighttpd web server on Ubuntu

The DocumentRoot, which is the directory under which all your Website files should exist, is set to /var/www/html.
The default directory index is index.html and The default configuration for Lighttpd is located in the /etc/lighttpd/lighttpd.conf file.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Leave a Reply