I have a Debian 11 server
On my website I have the following error:
Caused by: PDOException
could not find driver
According to what the phpinfo()
function returns, my php.ini file is in:
/etc/php/7.4/apache2/php.ini
I have the following modules:
root@xxx:/var/www/html/xxx # php -m
[PHP Modules]
...
PDO
pdo_mysql
...
I have tried to uncomment the lines in the /etc/php/7.4/apache2/php.ini
file:
extension = mysqli
and
extension = pdo_mysql
and then do service apache2 restart
but it doesn't work
How can I load the driver?