Solution to the failure of php56 to run pdo: 1. Modify the configuration of php.ini and open extension.php_pdo.dll; 2. Download php_pdo.dll and assign it to the extension folder of php; 3. Completely uninstall php and reinstall.
The operating environment of this article: centos6.5 system, PHP5.6 version, DELL G3 computer
How to solve the failure of php56 to run pdo question?
centos6.5 php5.6 cannot directly run php pdo error solution
Run php on the command line and report an error:
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/php_pdo.dll’ - /usr/lib64/php/modules/php_pdo.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/php_pdo_mysql.dll’ - /usr/lib64/php/modules/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Solution
I checked a lot of information.
Online solution 1
Modify the configuration of php.ini and open extension.php_pdo.dll
Online solution 2
Download php_pdo.dll Assign the value to the extension folder of php
It has been confirmed that neither of the above two methods can solve the problem.
After investigation, this problem is actually a legacy issue with version and configuration files. The simplest and most violent method is to completely uninstall and reinstall PHP. Be sure to reinstall it together with the relevant extensions.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to solve the problem of failure to run pdo in php56. For more information, please follow other related articles on the PHP Chinese website!