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