I can't get phpmyadmin to run, it reports The mysqli extension is missing.
I have been running MySQL using MariaDB for a while, through multiple versions of Ubuntu. Currently running 22.04. After not using phpmyadmin for a while, I found recently that it is no longer working. I have read through various search results on this problem, but most or all of what I have found is not recent and does not fix my problem.
This is a list of versions of php that I have installed on my system:
There are 3 choices for the alternative php (providing /usr/bin/php
).
Selection Path Priority Status
---------------------------------------------
* 0 /usr/bin/php8.2 82 auto mode
1 /usr/bin/php7.4 74 manual mode
2 /usr/bin/php8.1 81 manual mode
3 /usr/bin/php8.2 82 manual mode
Press <enter> to keep the current choice[*], or type selection number:
<?php phpinfo(); ?>
tells me that apache2 is running php 8.1.18.
After modifying /etc/php/8.1/apache2/php.ini
and /etc/php/8.2/apache2/php.ini
with
extension=/usr/lib/php/20220829/mysqli.so
phpinfo includes /etc/php/8.1/apache2/conf.d/20-mysqli.ini
in its list of ini files parsed.
But I am still getting the error message that mysqli extension is missing.
phpmyadmin has been running previously, but I have not used it for a while, so I can't pinpoint what system change triggered this problem.
Any help resolving this problem would be much appreciated.
Thank you!