When you install phpmyadmin with nginx and done a symbolic link in /var/www/html to /usr/share/phmyadmin PHP my admin will redirect to localhost after logging
To fix this you have to open file sudo vim /etc/phpmyadmin/config.inc.php
and add the code in the very bottom
1 |
$cfg['PmaAbsoluteUri'] = $_SERVER[HTTP_HOST].dirname($_SERVER[SCRIPT_NAME]); |
then restart nginx
1 |
sudo systemctl restart nginx |