1. Install SSH (required)
Sudo apt-Get Install SSH
This link address has more detailed SSH installation information http://mxsfengg.iteye.com/blog/543000
2. Install MySQL
Sudo apt-Get install mysql-server-5.0
After installation is complete, follow the prompts to set the root password
3. install Apache
Sudo apt-Get install apache2
After installation, open it in the browser:
Http: // localhost/or http: // 127.0.0.1
If it appears, it indicates OK.
4. install PHP
Sudo apt-Get install PhP5 libapache2-mod-php5
Sudo apt-Get install libapache2-mod-auth-mysql
Sudo apt-Get install php5-mysql
Sudo apt-Get install php5-gd
Configure PHP. ini:
Sudo gedit/etc/PhP5/apache2/PHP. ini
Put the file behind the file:
# Extension = mysql. So
# Extension = Gd. So
.
5. Restart Apache
Sudo/etc/init. d/apache2 restart
Test PHP:
Sudo gedit/var/www/info. php
Enter the following content:
<? PHP
Phpinfo ();
?>
Save and enter http: // 127.0.0.1/info. php or http: // localhost/indfo. php in the browser.
If the configuration information is displayed, the configuration is successful.
6. Install phpMyAdmin
Sudo apt-Get install phpMyAdmin
Note: The installation example provided by others on the internet is as follows:
Dpkg: An error occurred while processing phpMyAdmin (-- configure:
The subprocess has installed the post-installation script and Returns Error Code 10.
Processing the trigger for libc-bin...
Ldconfig deferred processing now taking place
An error occurred during processing:
PhpMyAdmin
E: sub-process/usr/bin/dpkg returned an error code (1)
An error occurs when uninstalling the instance. You must first execute
Sudo mV/var/lib/dpkg/INFO/phpMyAdmin. prerm/var/lib/dpkg/INFO/phpMyAdmin. prerm_backup
I downloaded the installation package from the Internet.
Http://www.phpmyadmin.net select tar.gz compressed package download
Tar xf phpMyAdmin-3.3.8-all-languages.tar.gz
Music phpMyAdmin-3.3.8-all-languages/var/www/phpMyAdmin
(Or extract it to/usr/share.
Music phpMyAdmin-3.3.8-all-languages/usr/share/phpMyAdmin
Create a link under/var/www.
Sudo ln-S
/Usr/share/phpMyAdmin // var/www/
)
CD/var/www/phpMyAdmin
CP config. sample. Inc. php config. Inc. php
You can configure config. Inc. php if necessary.
8. Test phpMyAdmin.
Sudo/etc/init. d/apache2 restart
(Restart Apache)
Access http: // localhost/PhpMyAdmin
.
Enter the username: root, and the password previously set for MySQL to operate on the MySQL database.