1 install mysqlsudoapt-getinstallmysql-server2 install apache2sudoapt-getinstallapache2 modify/var/www access permissions sudochmod777 & amp; #39;/var/www & amp; #39; open in a browser: http: // localhost if you see It...
1. install my SQL
Sudo apt-get install mysql-server
2 install apache2
Sudo apt-get install apache2
Modify/var/www access permissions
Sudo chmod 777 '/var/www'
Open http: // localhost in the browser
If you see "It works !" The installation is successful.
3. install phpMyAdmin
Sudo apt-get install libapache2-mod-php5 php5
Sudo apt-get install mysql-server php5-mysql
Sudo apt-get install phpmyadmin
Configuration:
(1) modify the php. ini file
Sudo gedit/etc/php5/apache2/php. ini
Add
Extension = mysql. so
Extension = dg. so
(2) modify config. inc. php
Sudo gedit/etc/phpmyadmin/config. inc. php
Modify or add the following content
$ Cfg ['servers'] ['$ I'] ['sockets '] ='/var/run/mysqld. sock ';
4. log on to phpMyAdmin.
You can select a language and enter the mysql logon name and password.
Author: Zhang Linlin