Build a web server in ubuntu (apache2 + php5 + mysql5 + phpmyadmin) and apache2mysql5
1. Install mysql services and clients. Enter the mysql root Password as prompted.
$ Sudo apt-get install mysql-server mysql-client
2. Install the apache2 server
$ Sudo apt-get install apache2
3 install php5
$ Sudo apt-get install php5 libapache2-mod-php5
4. install other related modules
$ Sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp
5. Install phpmyadmin to manage the database. After the installation and configuration are complete, log on to the management database at 127.0.0.1/phpmyadmin in the address bar of the browser.
$ Sudo apt-get install phpmyadmin
6. Copy phpmyadmin to the default directory.
$ Sudo cp-r phpmyadmin/var/www/html/
7. Restart apache
$ Sudo/etc/init. d/apache2 restart
8 enter 127.0.0.1/phpmyadmin in the browser address column to test