Steps to install and configure phpMyAdmin under centos
- 2020-06-12 11:42:08
- OfStack
It took me 2 nights to install and configure phpmyadmin under centos, but I'm not sure I can do it. It's easy to configure phpmyadmin, it's very simple. I configured phpmyadmin when I started working, and it went well. So make a note
1. In phpMyAdmin official website http: / / www phpmyadmin. net/downloads/download the source code package
cd /usr/local/src
wget https://files.phpmyadmin.net/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gz
tar zxvf phpMyAdmin-4.6.0-all-languages.tar.gz
2. Put ES17en-4.6.0-ES18en-ES19en in the web directory
mv phpMyAdmin-4.6.0-all-languages /usr/local/nginx/html
// rename
mv phpMyAdmin-4.6.0-all-languages phpMyAdmin
Configuration of 3.
cd /usr/local/nginx/html/phpMyAdmin/libraries
vim config.default.php
// Modify the following
// localhost => 127.0.0.1
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
4. Visit
This project is placed under nginx test directory html
Enter http://localhost/phpMyAdmin in your browser
Then enter the username and password
5. Error messages
1, the local s socket not correctly configured
The solution is to modify host in the configuration file
// localhost => 127.0.0.1
$cfg[ ' Servers'][$i][ ' host'] = ' 127.0.0.1';