PDO and pdo_mysql
I'm getting the following errors:
I've marked to install both in EasyApache and built a few times with no result. php -m shows that both are installed:
"find -name pdo.so" finds a file, however "find -name pdo_mysql.so" finds nothing.
PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo.so: cannot open shared object file: No such file or directoryin Unknown on line 0
PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0I've marked to install both in EasyApache and built a few times with no result. php -m shows that both are installed:
# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
filter
ftp
gd
hash
iconv
imap
intl
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
the ionCube PHP Loader"find -name pdo.so" finds a file, however "find -name pdo_mysql.so" finds nothing.
-
Hello, It's likely you are using a custom php.ini file within the account's home or public_html directory. Try disabling this file to see if the issue persists. You can then copy /usr/local/lib/php.ini to the account if you want to edit the version of the file with the correct paths. Thank you. 0 -
Thanks for the response! There were indeed custom php.ini files (in the wp-admin directory), presumeably created by wordpress. I commented both of the pdo drivers out in the custom php.ini and it does appear to have resolved the error message. Strangely, this configuration had been working without error for quite some time until we upgraded to Centos 6.6. 0 -
Hello, I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments