centos7.2
The Phpadmin of lamp
phpMyAdmin is a PHP-based, Web-base schema on the site host MySQL database management tools, so that managers can use the Web interface to manage the MySQL database
: Https://files.phpmyadmin.net/phpMyAdmin/4.0.10.20/phpMyAdmin-4.0.10.20-all-languages.zip
Note: The downloaded version will be compatible with the current PHP version and the MySQL version, or it will not succeed.
~]# yum install httpd PHP php-mysql mariadb-server installation Required Services
~] #systemctl Start httpd startup httpd Service
~] Start MySQL service #systemctl start mariadb
~]# ss-tnl viewing the monitored ports
State recv-q send-q Local address:port Peer address:port
LISTEN 0 : 3306 :
LISTEN 0::: £ º:::*
~]# systemctl Stop Firewalld Firewall off
~]# systemctl Disable FIREWALLD permanently shuts down the firewall
~]# Setenforce 0 temporarily close SELinux
~]# sed-i "s/^selinux\=enforcing/selinux\=disabled/g"/etc/selinux/config permanently off SELINUX
~]# Unzip Phpmyadmin-4.7.9-all-languages.zip Decompression phpMyAdmin
~]# cp-a phpmyadmin-4.7.9-all-languages/var/www/html/copied to the specified directory
html]# ln-s phpmyadmin-4.7.9-all-languages PMA Create a soft connection for later upgrades
html]# CD pma/
pma]# cp config.sample.inc.php config.inc.php Copy configuration file
~]# tr-d ' a-z0-9a-z ' </dev/urandom |head-30 |md5sum
7A1E4B41291C0C74E82EF5A5F528DC82-Generate random string
PMA] #vim config.inc.php Edit configuration file
$cfg [' blowfish_secret '] = ' 7a1e4b41291c0c74e82ef5a5f528dc82 '; add random string
Browser Login: 192.168.1.102/PMA
Tip: The mbstring extension is missing.
pma]# Yum Install Php-mbstring-y expansion module
pma]# Systemctl Reload httpd Reload, re-login
Login interface
MariaDB [(none)]> set password for ' root ' @ ' localhost ' =password (' magedu ');
MariaDB [(none)]> set password for ' root ' @ ' 127.0.0.1 ' =password (' magedu ');
MariaDB [(None)]> flush privileges; Reread Authorization Form effective
Enter the user name and password above in the login screen
Centos7.2 phpadmin Installation Configuration