Be sure that you change the php.ini for fpm not cli/apache. Check the path using phpinfo()
Nginx php 7.4 not finding pdo driver
In Lubuntu with nginx I cannot seem to get pdo working.
In both php.ini files I did uncomment extension=pdo_mysql, and restarted all servers. PHP is served fine, just no pdo.
In /etc/php/7.4/mods-available there is pdo_mysql.ini :
; configuration for php mysql module
; priority=20
extension=pdo_mysql.so
A phpinfo(); shows PDO drivers no value.
Any ideas on why pdo isn't loading?
@jlrdw I suggest installing the ppa for php to get the proper version of everything :)
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php8.1 php8.1-mysql
If you are new to linux then a PPA is like a download location for apps. The build in version of php in ubuntu is very old and outdated, so the community runs a PPA that is always up to date with the newest version :)
Please or to participate in this conversation.