• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PSA problem after server burn

M

microsol

Guest
Hi,

after a very bad server burn we were able to recover from it because luckily we had a raid setup.
However, everything works fine on the server but the control panel.

We get the following error:

Unable to connect to database: Too many open links (0) 0: /usr/local/psa/admin/auto_prepend/auth.php3:66 psaerror(string "Unable to connect to database: Too many open links (0)")

The control panel seem to start fine but there is no way to connect to it without getting this error.

Anyone any idea how to fix this?
 
Mostly this has something to do with the max open connections allowed by the SQL server in combination with php.

If you do a phpinfo.. how many links are available?

In my case its:
mysql.max_links Unlimited Unlimited

Howto see phpinfo?
Create a php file with this:
PHP:
<?
phpinfo();
?>
then see it thru your browser and search for the part SQL
 
Ok, that was it. Thanks. Somehow the control panel php.ini became corrupt and was having -3 in there instead -1 (unlimited).
 
Back
Top