Platform: CentOs 7
- sudo yum install epel-release
- sudo yum install phpmyadmin
Create a sym-link to the code:
- sudo ln -s /usr/share/phpMyAdmin /usr/share/nginx/html
Restart PHP-FPM:
- sudo systemctl restart php-fpm
Rename the sym-link for PhpMyAdmin (security measure):
- sudo mv /usr/share/nginx/html/phpMyAdmin /usr/share/nginx/html/[new-name]
Update /etc/phpMyAdmin/config.inc.php to add config data for MySQL servers.
Make sure nginx can write to /var/lib/php-fpm/session folder.
Update libraries/config.default.php and set the variable $cfg['PmaAbsoluteUri'] to the site url you will use.
You may also have to change the file libraries/dbi/DBIMysqli.class.php and hard code the host ip (for some reason the remote ip was not loaded properly.)