Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

Broken after update oh no *_*

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Broken after update oh no *_*
  • Quote

Post by pandabb » 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!
Top

RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Broken after update oh no *_*
  • Quote

Post by RevengeFNF » Fri Aug 21, 2015 8:11 am

Hello,

Do this:

yum remove php-mysql

Then do this:

yum --enablerepo=remi,remi-php54 install php-mysqlnd

Restart httpd
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Broken after update oh no *_*
  • Quote

Post by pandabb » Fri Aug 21, 2015 8:44 am

Wow thanks that was a quick fix.

and boy i can feel the difference, before when i click a link it takes like 2 sec before it will open, now it instantly open!


i think i lost phpmyadmin, whats the command to install it back. ?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Broken after update oh no *_*
  • Quote

Post by skurudo » Fri Aug 21, 2015 8:51 am

Something like this:

Code: Select all

yum install phpmyadmin
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Broken after update oh no *_*
  • Quote

Post by skurudo » Fri Aug 21, 2015 8:53 am

pandabb wrote: and boy i can feel the difference, before when i click a link it takes like 2 sec before it will open, now it instantly open!
?
Mmm... only tests will show, how much faster your script is. Feeling in this case - euphoria, joy, happyness, and the browser cache ;-)
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Broken after update oh no *_*
  • Quote

Post by pandabb » Fri Aug 21, 2015 9:01 am

Thanks for the help again.

now its phpmyadmin giving me error, it shows 403. I dont have any htaccess, the settings i havent touched it using default setting and also default mariadb settings. T_T
Top

RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Broken after update oh no *_*
  • Quote

Post by RevengeFNF » Fri Aug 21, 2015 10:30 am

Go here: /etc/httpd/conf.d/

You have now a phpmyadmin.conf and phpmyadmin.conf.rpmsave
Delete the first one, and rename the second.

Then go here: /etc/phpMyAdmin/

Do the same with the file config.inc.php and config.inc.php.rpmsave
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Broken after update oh no *_*
  • Quote

Post by pandabb » Fri Aug 21, 2015 3:32 pm

Thanks a lot sir! It works.

Does this look ok ? MY Database client version looks jumbled.

Database server

Server: Localhost via UNIX socket
Server type: MariaDB
Server version: 10.0.21-MariaDB - MariaDB Server
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)
Web server

Apache/2.2.15 (CentOS)
Database client version: libmysql - mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
PHP extension: mysqli Documentation
PHP version: 5.4.44
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password