stevewest15 Posted September 26, 2015 Share Posted September 26, 2015 Hi, We've tried upgrading WHMCS and now any page gives the following error: Critical Error SQLSTATE[HY000] [2002] No such file or directory Apache logs & php logs doesn't show any errors. We've opened a support ticket but they're very slow lately (Ticket #PFV-479740). Appreciate any help you can offer! Thx, SW 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 26, 2015 Share Posted September 26, 2015 are the custom paths in the configuration.php file correct? 0 Quote Link to comment Share on other sites More sharing options...
stevewest15 Posted September 26, 2015 Author Share Posted September 26, 2015 Hi, Yes, the custom paths are valid. Thx, SW 0 Quote Link to comment Share on other sites More sharing options...
rkatz0 Posted September 27, 2015 Share Posted September 27, 2015 Did you upgrade mysql and/or PHP? The above error indicates there could be a problem connecting to the mysqld sock, so you may want to try locating it, and / or recreating the link. - - - Updated - - - Also could be PDO for PHP, this thread might help you solve it: http://stackoverflow.com/questions/2412009/starting-with-zend-tutorial-zend-db-adapter-throws-exception-sqlstatehy000 0 Quote Link to comment Share on other sites More sharing options...
stevewest15 Posted September 27, 2015 Author Share Posted September 27, 2015 Hi, We didn't change anything on the server nor WHMCS other then following the instructions to perform an upgrade. It looks like w/ WHMCS 6.x, it doesn't like having the following in configuration.php: $db_host = 'localhost'; The fix for us was to change the above to an IP address instead of localhost (even though localhost works for other apps installed on the server (WP, etc): $db_host = '127.0.0.1'; Thx, SW 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.