MySQL spontaneously broke on all PHP versions: Uncaught Error: Class "PDO" / Call to undefined function mysqli_init()

Operating System & Version
CentOS 7
cPanel & WHM Version
11.96.0

PatPeter

Registered
Jun 13, 2021
2
1
3
https://www.unigamia.com/
cPanel Access Level
Website Owner
On June 9th around noon, maybe as late as 6 PM, my entire website nuked itself: https://www.unigamia.com/
  1. I did not make a single code change that day.
  2. I did not change any settings in WHM until after it broke.
  3. I did not change any settings in cPanel until after it broke.
My host is trying to tell me that this is a developer error, when absolutely nothing was changed on my website. The other threads on this site aren't very helpful for my issue:

  1. Call to undefined function mysql_connect()
  2. SOLVED - Mysqli not in easy apache 4
  3. SOLVED - Why is there no MySQLI on easyapache 4?
  4. How to install MySQL with EasyApache 4 for PHP Version 7.0
All it tells me to do is run a repoquery command, not any command that actually fixes the problem:

Code:
# 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: PHP 7.4.20 - phpinfo()

However, on all of my PHP pages I'm receiving these.

Code:
[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
Code:
[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.
 

PatPeter

Registered
Jun 13, 2021
2
1
3
https://www.unigamia.com/
cPanel Access Level
Website Owner
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.