1 Install MySQL service and client, follow the prompts to enter the root password of MySQL
$sudo apt-get Install Mysql-server mysql-client
2 Installing the APACHE2 server
$sudo Apt-get Install Apache2
3 Installing PHP5
$sudo apt-get Install php5 libapache2-mod-php5
4 installation related Other related modules
$sudo apt-get Install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache p Hp5-ming php5-ps Php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
5 Install phpMyAdmin Management database, after the installation configuration is completed, you can 127.0.0.1/phpmyadmin login to the management database in the browser address bar
$sudo Apt-get Install phpMyAdmin
6 copy phpMyAdmin to default directory
$sudo Cp-r phpmyadmin/var/www/html/
7 Restarting Apache
$sudo/etc/init.d/apache2 Restart
8 now browser address column input 127.0.0.1/phpmyadmin test
Build a Web server under Ubuntu (apache2+php5+mysql5+phpmyadmin)