Broken after update oh no *_*
Posted: Fri Aug 21, 2015 2:43 am
I upgraded mysql to mariadb, after the upgrade i checked my phpmyadmin and everything seems to be fine, including the webpages it loads ok. But after i rebooted my server, this i what i get.
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I checked my php version i think you will find the info here what's causing the error.
[root@panda ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.18: 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/mysqli.so' - libmysqlclient.so.18: 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/pdo_mysql.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.44 (cli) (built: Aug 6 2015 07:41:49)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Then i tried checking for file it they exist. (see my screenshot)
http://share.pho.to/9ey14/yh/original also permission is set to 755.
I also tried
find / -name libmysqlclient_r.so.18 (but no result, missing?)
I checked my folder /usr/lib64/mysql
It does contain libmysqlclient_r.so.16 (BUT NOT 18.)
see screenshot - http://share.pho.to/9eyPD/h9/original
ldconfig -v | more
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-431.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-573.1.1.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-573.3.1.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
/usr/lib64/mysql:
libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
rpm -qa | grep -i mysql
perl-DBD-MySQL-4.013-3.el6.x86_64
compat-mysql51-5.1.54-1.el6.remi.x86_64
php-mysql-5.4.44-1.el6.remi.x86_64
Thanks!
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I checked my php version i think you will find the info here what's causing the error.
[root@panda ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.18: 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/mysqli.so' - libmysqlclient.so.18: 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/pdo_mysql.so' - libmysqlclient.so.18: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.44 (cli) (built: Aug 6 2015 07:41:49)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Then i tried checking for file it they exist. (see my screenshot)
http://share.pho.to/9ey14/yh/original also permission is set to 755.
I also tried
find / -name libmysqlclient_r.so.18 (but no result, missing?)
I checked my folder /usr/lib64/mysql
It does contain libmysqlclient_r.so.16 (BUT NOT 18.)
see screenshot - http://share.pho.to/9eyPD/h9/original
ldconfig -v | more
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-431.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-573.1.1.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-573.3.1.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
/usr/lib64/mysql:
libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
rpm -qa | grep -i mysql
perl-DBD-MySQL-4.013-3.el6.x86_64
compat-mysql51-5.1.54-1.el6.remi.x86_64
php-mysql-5.4.44-1.el6.remi.x86_64
Thanks!