In this post, I'll explain how to install lighttpd web server on Debian and Ubuntu.
What if Apache web server is already installed on your server that you have just purchased from a hosting company, and you do not want to run both lighttpd and Apache simultaneously on your server???
Stop Apache and remove it.
sudo /etc/init.d/apache2 stop
apt-get remove apache2
Install lighttpd and restart it.
apt-get install lighttpd
Check if it is running.
The default lighttpd configuration file: /etc/lighttpd/lighttpd.conf
Previous post: FreeBSD.