Home / Linux / Install PhpMyAdmin

Install PhpMyAdmin


Platform: CentOs 7

  1. sudo yum install epel-release
  2. sudo yum install phpmyadmin

Create a sym-link to the code:

  1. sudo ln -s /usr/share/phpMyAdmin /usr/share/nginx/html

Restart PHP-FPM:

  1. sudo systemctl restart php-fpm

Rename the sym-link for PhpMyAdmin (security measure):

  1. 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.)


    Post a comment

    Your Name or E-mail ID (mandatory)

     

    Note: Your comment will be published after approval of the owner.




     RSS of this page