简体   繁体   English

EasyApache 4:“ PHP启动:无法加载动态库'pdo_mysql.so'”

[英]EasyApache 4: “PHP Startup: Unable to load dynamic library 'pdo_mysql.so'”

I cannot seem to get EasyApache 4 to run pdo_mysql. 我似乎无法让EasyApache 4运行pdo_mysql。 After provisioning with the correct modules, my error_log fills up with "PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so'". 在配置了正确的模块后,我的error_log充满了“ PHP警告:PHP启动:无法加载动态库'pdo_mysql.so'”。 It then lists all of the places it looked for pdo_mysql.so, but to no avail. 然后,它列出了查找pdo_mysql.so的所有位置,但无济于事。

I have also tried reinstalling php using command line, but it does not install pdo_mysql, either. 我也尝试过使用命令行重新安装php,但也没有安装pdo_mysql。

php.ini is set correctly, so that is not a concern; php.ini设置正确,因此无需担心; PHP is trying to open the module, but it's simply not there, no matter how many times I install using EasyApache or command line and reboot. PHP正在尝试打开该模块,但是无论我使用EasyApache或命令行安装多少次并重新启动,它都根本不存在。

I ended up fixing it by manually removing my entire PHP structure, then reinstalling from EasyApache. 我最终通过手动删除整个PHP结构来修复它,然后从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. 据我所知,以前的安装肯定有一些遗漏之处,因为即使使用EasyApache进行卸载也无法获得全部。

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. 如果有人在共享主机上偶然发现此问题,我不知道会为您提供一个简单的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP启动:无法加载动态库“ pdo_mysql.so” - PHP Startup: Unable to load dynamic library 'pdo_mysql.so' PHP 警告:PHP 启动:无法加载动态库“pdo_mysql.so” - PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' PHP警告:PHP启动:无法加载动态库'/usr/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so' - PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so' 无法加载动态库“pdo_mysql.so”,因为将 php 版本升级到 7.4 - Unable to load dynamic library 'pdo_mysql.so' because upgrade php version to 7.4 PHP 启动:无法加载动态库“pdo-sqlite.so” - PHP Startup: Unable to load dynamic library 'pdo-sqlite.so' PHP 启动:无法加载动态库 php_pdo_firebird - PHP Startup: Unable to load dynamic library php_pdo_firebird PHP警告:PHP启动:无法加载动态库phalcon.so:未定义符号:php_pdo_g $ - PHP Warning: PHP Startup: Unable to load dynamic library phalcon.so: undefined symbol: php_pdo_g$ PHP警告:PHP启动:无法加载动态库'/usr/lib/php/20151012/mysql.so' - PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mysql.so' 警告:PHP启动:无法加载动态库apc.so - Warning: PHP Startup: Unable to load dynamic library apc.so PHP 启动:无法加载动态库“phalcon.so” - PHP Startup: Unable to load dynamic library 'phalcon.so'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM