Unable to load dynamic library
I'm getting
these error. I have run grep extension /usr/local/lib/php.ini from ssh as root and the output is as follow:
please help me solve the issue.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so: 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/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
these error. I have run grep extension /usr/local/lib/php.ini from ssh as root and the output is as follow:
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
; leading '/'. You must also specify the file extension being used including
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20131226"
zend_extension = "/usr/local/IonCube/ioncube_loader_lin_5.6.so"
; If you wish to have an extension loaded automatically, use the following
extension = "pdo_sqlite.so"
extension = "pdo.so"
extension = "imagick.so"
extension = "pdo_mysql.so"
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
; dictionary files. Include the base filename, but not the file extension.
please help me solve the issue.
-
Hello, This issue is likely due to the pdo_mysql.so module missing from the /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ directory. If you run an 'ls' on that directory is the file showing in there? Do you need the PDO MySQL extension? If so, I recommend re-running the EasyApache tool and selecting the PDO option under the PHP section. If you don't need it, you should be able to remove the: extension = "pdo_mysql.so"
entry from the php.ini file and then restart your Apache web service. If you're still having any issues I recommend reaching out to our support team via a ticket so we can take a further look! Thanks,0
Please sign in to leave a comment.
Comments
1 comment