Install Lighttpd + PHP5 + MySQL website server on Ubuntu11.04

Source: Internet
Author: User
Tags mysql web server
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.