PHP Warning: PHP Startup: Unable to Load Dynamic Library 'Pdo_Mysql.So'

Unable to load dynamic library 'pdo_mysql.so' because upgrade php version to 7.4

The real one is shown by info.php:

Loaded Configuration File   /etc/php/7.4/fpm/php.ini

So, I finished the issue with configuring php.ini in fpm.

EasyApache 4: PHP Startup: Unable to load dynamic library 'pdo_mysql.so'

I ended up fixing it by manually removing my entire PHP structure, then reinstalling from EasyApache. Fixed it without issue. As far as I can tell, there must have been some remnants of a previous install mucking about because even uninstalling using EasyApache wasn't getting everything.

Luckily, it was my own server and I could nuke everything. If anybody stumbles across this issue on shared hosting, I don't know that there will be an easy solution for you.

PHP8.1-fpm: pdo-mysql installed but not appear on php -m

Thx for your comment. I have find the solution in an other post :

https://stackoverflow.com/a/64661113/19034672

I have doing the --purge of all php installed, and reinstall php-fpm, and all is done.

Getting error while connecting sybase laravel

Error says it is because of pdo_mysql.
I solved the problem this way:

sudo apt-get --purge remove php-common

sudo apt-get install php-common php-mysql php-cli

Now there is no error and php -m shows it has everything
If still issue is not being solve then find the php.ini file and remove ; from line extension=pdo_mysql.



Related Topics



Leave a reply



Submit