I have been tossing centos and Ubuntu recently. I personally prefer Ubuntu, and the interface is beautiful. Although it consumes a lot of energy, it is not VPs or the server is quite useful on the machine, I am very unfamiliar with Linux, especially trying out terminal control programs. in particular, you need to set permissions to download or open/copy folders. but now it is more and more perfect.
Back to the topic, let's give a brief introduction today.Install the lamp environment with one click in Ubuntu 12.04The lamp component is an essential component of the server site. The environment can be installed in a few simple steps.
Open Terminal
Sudo apt-Get install apache2 PhP5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpMyAdmin
One-click installation of required components.
During this period, you are required to enter the root user password of the MySQL database, and select the server type [Apache] And phpMyAdmin.
Restart Apache after installation. Command: sudo/etc/init. d/apache2 restart
You also need to link the installed phpMyAdmin and run the command: ln-S/usr/share/phpMyAdmin under/var/www /.
Lamp has been installed.
Install the lamp environment with one click under Ubuntu 12.04 in the following simple steps
The apache2 file is stored in the/usr/lib/apache2/modules directory.
PHP exists in the/usr/lib/PhP5 directory, but it is a script language supported by apache2. It runs and parses PHP files through the module loaded in apache2.
Install MySql in the/usr/share/MySQL directory.