Ubuntu has a very convenient function, namely one-click installation of lamp server, which is very useful for learning to use PHP.
First, install a tool. In ubuntu 10.04 and earlier versions, the tool is installed by default.
However, UBUNTU 10.10 is not installed by default, so we need to manually install it first.
$ Sudo apt-Get install tasksel
$ SudoTasksel install Lamp-Server
The module name that can be installed with tasksel can be seen in the/usr/share/tasksel/ubuntu-tasks.desc file.
Tasksel detailed introduction to https://help.ubuntu.com/community/Tasksel
Or
Open the new software package manager, and select "mark software package by Task Group" in the "edit" menu. Then, select "lamp server" and mark the installation.
After the installation is complete, remember to restart Apache
$ Sudo/etc/init. d/apache2 restart
Install the MySQL graphical management tool
$ Sudo apt-Get install mysql-Admin