May
29th

WHM/CPanel: #2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)

Filed under The Server Room | Posted by Gary

Tjis is quite a common error and fortunately there seems to be a ‘silver bullet’. The answer was posted on the CPanel forums by Dawzz.

pico /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
or if your server doesn’t have pico:

nano /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
Look for the line that says:

$cfg[‘Servers’][$i][‘socket’] = ”;

and change it to:

$cfg[‘Servers’][$i][‘socket’] = ‘/var/lib/mysql/mysql.sock’;
then change the next line from:

$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
to:

$cfg[‘Servers’][$i][‘connect_type’] = ‘socket’;

Leave a comment if that worked for you!

You must be logged in to post a comment.