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
Strip HTML Tags and Its Contents
Rewrite All Queries to Not Need the .PHP Extension Using a Mod_Rewrite Rewriterule
PHP Float Calculation 2 Decimal Point
PHP Array, Are Array Indexes Case Sensitive
Codeigniter Redirect -- the Uri You Submitted Has Disallowed Characters
Jquery UI Saving Sortable List
Limiting Number of Times a Loop Runs in PHP
Cakephp Cake_Core_ Cache Was Unable to Write 'Cake_Dev_En-Us'
Loop Through Wordpress Posts, and Wrap Each X Post in a Div
How to Add a Condition Inside a PHP Array
Set Httponly and Secure on PHPsessid Cookie in PHP
Maximum Length of Generated Hash When Using Password_Hash
In PHP, Is There Any Harm in Running Session_Start() Multiple Times