Ubuntu10.10 is released as scheduled. On the second day after installation of 10.10, an Apache + MySQL + PHP environment is required for official business purposes. I installed ubuntu for the first time. Fortunately, everything went smoothly. Leave this article as a note. 1. Apache $ sudoapt-getinstallapache22, Mysql $ sudoapt-getinstallmysql-server3, PHP $ sudoapt-
Ubuntu 10.10 is released on schedule. On the second day after installation of 10.10, an Apache + MySQL + PHP environment is required for official business purposes. I installed ubuntu for the first time. Fortunately, everything went smoothly. Leave this article as a note.
1. Apache
$ Sudo apt-get install apache2
2. Mysql
$ Sudo apt-get install mysql-server
3. PHP
$ Sudo apt-get install php5
4. MySQL for Apache PHP (Communication template)
$ Sudo apt-get install libapache2-mod-auth-mysql
$ Sudo apt-get install php5-mysql
5. phpmyadmin
$ Sudo apt-get install phpmyadmin
During the installation process, mysql and others will prompt you to set the root password. (Remember www.linuxidc.com !)
After installation
1. Open http: // localhost and you can see
It works! Indicates that apache is running normally.
2. Enter sudo netstat-tap | grep mysql on the terminal.
Tcp 0 0 localhost. localdomain: mysql *: * LISTEN-indicates that mysql runs normally.
3. phpMyAdmin is automatically installed under/usr/share/phpMyAdmin.
Enter cp-r/usr/share/phpMyAdmin/var/www on the terminal to copy the phpmyadmin file to the www folder.
Open http: // localhost/phpmyadmin to open the mysql management interface.