MySQL spontaneously broke on all PHP versions: Uncaught Error: Class "PDO" / Call to undefined function mysqli_init()
On June 9th around noon, maybe as late as 6 PM, my entire website nuked itself:
All it tells me to do is run a repoquery command, not any command that actually fixes the problem:
Here you can see my PHP Info page: However, on all of my PHP pages I'm receiving these.
It's apparent that my PHP Info is lying to me because MySQL is clearly not loaded. Does anyone know how to fix this? This is stressing me out because I really needed this website to release something on June 15th.
# repoquery -q --whatprovides 'ea-php73-php-mysqli' | sort -V | tail -1
ea-php73-php-mysqlnd-0:7.3.28-1.5.7.cpanel.x86_64
Here you can see my PHP Info page: However, on all of my PHP pages I'm receiving these.
[14-Jun-2021 03:02:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/unigamia/public_html/src/XF/Db/Mysqli/Adapter.php:152
Stack trace:
#0 /home/unigamia/public_html/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 /home/unigamia/public_html/src/XF/Error.php(85): XF\Db\Mysqli\Adapter->getConnection()
#2 /home/unigamia/public_html/src/XF/App.php(2311): XF\Error->logException(Object(ErrorException), true, '')
#3 /home/unigamia/public_html/src/XF.php(236): XF\App->logException(Object(ErrorException), true)
#4 [internal function]: XF::handleFatalError()
#5 {main}
thrown in /home/unigamia/public_html/src/XF/Db/Mysqli/Adapter.php on line 152
[10-Jun-2021 06:29:17 America/New_York] PHP Fatal error: Uncaught Error: Class "PDO" not found in /home/unigamia/public_html/games/roster.php:8
Stack trace:
#0 {main}
thrown in /home/unigamia/public_html/games/roster.php on line 8
It's apparent that my PHP Info is lying to me because MySQL is clearly not loaded. Does anyone know how to fix this? This is stressing me out because I really needed this website to release something on June 15th.
-
Hello PatPeter! Was PHP-FPM ever enabled for this domain? If so, it may be worth verifying that PHP-FPM is still enabled per the case PenguinInternet mentioned above. 0 -
Thank you thank you thank you! That was it. I disabled and re-enabled PHP-FPM on my website and it started working again. In my attempt to get things working again I uninstalled Memcached (I had originally installed it manually via console), so this was a good opportunity to learn how EasyApache 4 works. 0
Please sign in to leave a comment.
Comments
3 comments