Article Title: Architecture aspect: Use Ubuntu as a web server system. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification Ubuntu is a fully Gnu/Linux-based operating system, it is a Debian-based release. The current version is 5.10.
If you want to quickly set up the web environment locally, you can configure it as follows:
In the terminal, type the following command to install Apache + PHP + Mysql. (Of course, make sure you have connected to the network :)
sudo apt-get install apache2 sudo apt-get install mysql-server sudo apt-get install php5-common sudo apt-get install php5-gd sudo apt-get install php5-mysql sudo apt-get install libapache2-mod-php5 |
The configuration file of Apaache is/etc/apache2/apache2.conf.
The default Web directory is/var/www/
Note: by default, the root user root after installation of mysql does not set a password. This will cause security risks.
If you do not understand the mysql command line operation method, we recommend that you use phpMyAdmin for management.
Configure mysql to support access from other clients.
Sudo vim/etc/mysql/my. cnf
Comment out the skip-networking line. (That is, add the # sign at the frontend of this line)
You can also install a Mysql client Query Tool
Sudo apt-get install mysql-query-browser
Enter mysql-query-browser in the terminal, enter the Server IP address 127.0.0.1 account: root and your password, and click connect to query and maintain data.
In addition, you can enterServerTo install a minimal operating system. Configure the web server according to the preceding method. However, note that mysql-query-browser must be inX.