Install php environment under Ubuntu & nbsp; install Apache2: sudoapt-getinstallapache2 install PHP module: sudoapt-getinstallphp5 install Mysqlsudoapt-getinstallmysql-server other modules install: sudoapt-get Ubuntu install php environment
Install Apache2:
Sudo apt-get install apache2
Install the PHP module:
Sudo apt-get install php5
Install Mysql
Sudo apt-get install mysql-server
Install other modules:
Sudo apt-get install libapache2-mod-php5
Sudo apt-get install libapache2-mod-auth-mysql
Sudo apt-get install php5-mysql
Sudo apt-get install php5-gd
After the installation is successful, use localhost to test it.
Then a new test. php file named phpinfo () is created and the test is successful.
I thought it would be very troublesome to install php in linux, but it does not seem to be particularly complicated.
Most of the time, people are always scared by the appearance !~ Try and try it!