Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: phpMyAdmin : Internal Server Error 500 Could not fetch uid or gid for : root.  (Read 6080 times)

0 Members and 1 Guest are viewing this topic.

Chetan Singh

  • Full Member
  • ***
  • Posts: 123
  • Karma: +2/-0
  • Bienvenido a las Tecnologías de la Admin-Ahead.
    • Admin-Ahead Server Technologies.
HI,

If you are getting this error while accessing phpMyAdmin from the cPanel control panel, it's because of phpMyAdmin is not configured properly. You need to verify user "cpanel-phpmyadmin" exists or not by this command,

root@server ~]#grep cpanel-phpmyadmin /etc/passwd

If it doesn't exist, then you need to add this user "cpanel-phpmyadmin" and it can be done by this command.

#useradd cpanel-phpmyadmin -d /var/cpanel/userhomes/cpanel-phpmyadmin

Now, assign appropriate ownership to /var/cpanel/userhomes/cpanel-phpmyadmin

#chown cpanel-phpmyadmin.cpanel-phpmyadmin /var/cpanel/userhomes/cpanel-phpmyadmin -R

Restart mysql and try once again to access phpMyAdmin.

Now, you can access phpMyAdmin without any issue.

Thank you,
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!