Lighttpd is rarely heard of. Let's talk about Lighttpd. Lighttpd is an open-source Web server software led by Germans. Its fundamental goal is to provide a website dedicated to high-performance websites, secure, fast, compatible, and flexible webserver environment. It features low memory overhead, low cpu usage, good performance, and rich modules. Lighttpd is an excellent web server among many OpenSource lightweight Web servers. Supports FastCGI and CGI
Lighttpd is rarely heard of. Let's talk about Lighttpd. Lighttpd is an open-source Web server software led by Germans. Its fundamental goal is to provide a website dedicated to high-performance websites, secure, fast, compatible, and flexible web server environment. It features low memory overhead, low cpu usage, good performance, and rich modules.
Lighttpd is one of the many OpenSource lightweight web servers. It supports important functions such as FastCGI, CGI, Auth, output compress, URL rewriting, and Alias. Apache is popular because of its rich functions, many functions of lighttpd are implemented accordingly. This is very important for apache users, because these problems must be addressed when migrating to lighttpd.
This tutorial is a sister-in-law with Ubuntu 11.04 installed with Nginx + PHP 5 + MySQL Web server.
1. instructions before installation
In this tutorial, the host name server1.example.com and IP address 192.168.0.100 are used. These settings may be different from your settings, so you must change them as appropriate.
Many operations require a Super User Name, so to avoid the trouble, we first switch to the Super User name for the operation, terminal input command:
sudo su
Ii. Install MySQL 5
Run the following command on the terminal:
apt-get install mysql-server mysql-client
During installation, you need to set the mysql super root user password and enter the password twice:
3. Install lighttpd
Lighttpd is also available in the Ubuntu software library. Just like installing apache and nginx, you can run the following command:
apt-get install lighttpd
Then, enter http: // 192.168.0.100/index.lighttpd.html in the browser, and you will see the lighttpd page. The page shows that the installation is successful and the operation is normal:
Here, the default root directory of Lighttpd in ubuntu is/var/www, And the configuration file/etc/lighttpd. conf, default website configuration file:/etc/lighttpd/conf-available, lighttpd can enable the configuration command: lighttpd-enable-mod, lighttpd disable configuration command: lighttpd-disable-mod