Admin-Ahead Community

Linux => Control Panels => cPanel => Topic started by: Chetan Singh on October 27, 2013, 12:40:05 am

Title: phpMyAdmin : Internal Server Error 500 Could not fetch uid or gid for : root.
Post by: Chetan Singh on October 27, 2013, 12:40:05 am
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,