How to: Re-install phpMyAdmin under cPanel (Linux)
December 24th, 2008
If your cPanel-based phpMyAdmin application is not working correctly (ie: not acessible), the fastest way to get things going is to force a phpMyAdmin re-installattion.
To do so, follow these steps:
- Log into your server as root (SSH2)
- Issue the following commands:
- rm -fR /usr/local/cpanel/3rdparty/etc/phpmyadmin ;
- rm -fR /var/cpanel/userhomes/phpmyadmin ;
- mkdir /usr/local/cpanel/3rdparty/etc/phpmyadmin ;
- mkdir /var/cpanel/userhomes/phpmyadmin ;
- chattr -ia /usr/local/cpanel/3rdparty/etc/phpmyadmin ;
- chattr -ia /var/cpanel/userhomes/phpmyadmin ;
- chown -R cpanelphpmyadmin:cpanelphpmyadmin /var/cpanel/userhomes/phpmyadmin ;
- Issue the following command as root:
/scripts/upcp –force - Once the installer has finished its job, restart the cPanel service:
service cpanel restart
phpMyAdmin should be accessible again.