I Have a problem on a server. I just installed lsapi and it broke all websites using MySQL - they cant connect.
I used the instructions here...
Im using EasyApache 3 and alt-php is configured with native PHP drivers.
Added debug to a wordpress site to see whats happening...
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /home/REMOVED/http://domain.com/wp-includes/wp-db.php on line 1538
Warning: mysql_connect(): No such file or directory in /home/REMOVED/http://domain.com/wp-includes/wp-db.php on line 1568
Error establishing a database connection
All sites using MySQL cant connect.
So Ive run this...
/usr/bin/switch_mod_lsapi --uninstall
And it didnt fix anything immediately. I recompiled apache with suphp also. After a few minutes everything is now back to normal.
Id like to know why this happened and how to prevent it.
Ive noticed mention of it being related to the MySQL socket.
I used the instructions here...
Im using EasyApache 3 and alt-php is configured with native PHP drivers.
Added debug to a wordpress site to see whats happening...
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /home/REMOVED/http://domain.com/wp-includes/wp-db.php on line 1538
Warning: mysql_connect(): No such file or directory in /home/REMOVED/http://domain.com/wp-includes/wp-db.php on line 1568
Error establishing a database connection
All sites using MySQL cant connect.
So Ive run this...
/usr/bin/switch_mod_lsapi --uninstall
And it didnt fix anything immediately. I recompiled apache with suphp also. After a few minutes everything is now back to normal.
Id like to know why this happened and how to prevent it.
Ive noticed mention of it being related to the MySQL socket.
Comment