Build a Lighttpd + PHP + MySQL environment in Ubuntu

Source: Internet
Author: User
Several simple commands are used to build the Lighttpd + PHP + MySQL environment in Ubuntu. Lighttpd is one of the most outstanding OpenSource lightweight webservers. It supports important functions such as FastCGI, CGI, Auth, output compression (outputcompress), URL rewriting, and Alias. Apache is popular because of its rich functions, many functions of lighttpd are implemented accordingly.

Several simple commands are used to build the Lighttpd + PHP + MySQL environment under Ubuntu. Lighttpd is one of the most outstanding 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.

1. Install MySQL

Sudo apt-get install mysql-server mysql-client

2 install lighttpd

Sudo apt-get install lighttpd

3 install php and php extensions

Sudo apt-get install php5 php5-cgi php5-mysql

4 install phpmyadmin

Sudo apt-get install phpmyadmin

5. Enable the fastcgi module of Lighttpd

Cd/etc/lighttpd/conf-enabled

Sudo lighttpd-enable-mod fastcgi

6 restart the Lighttpd Service

Sudo service lighttpd restart

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.