Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default VPS upgrade php/mysql 'libmysqlclient_14' not found'

    On a CentOS 4.3 VPS (RELEASE 119) I upgraded PHP from 4.4.4 to 5.1.5, and MySQL from 4.1 to 5.0.24.
    Everything works fine, but I noticed /scripts/mysqlup gives this error now:

    MySQL Setup Script Version 7.0
    Loaded cPPkgs::MySQL ok!
    This is the cPPkgs::MySQL 5.0.24 installer for Linux.
    MySQL 5.0.24 is up to date
    /usr/local/apache/libexec/libphp4.so: /usr/lib/libmysqlclient.so.14: version `libmysqlclient_14' not found (required by /usr/local/apache/libexec/libphp4.so)

    I recompiced apache & php twice after upgrading to MySQL 5, but somehow there is a link to /usr/local/apache/libexec/libphp4.so somewhere, that doesn't get updated to /usr/local/apache/libexec/libphp5.so

    Has anyone else come across this?
    Last edited by jamesbond; 08-20-2006 at 03:23 AM.

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Well, I'm going to answer this myself

    I removed /usr/local/apache/libexec/libphp4.so, since it is not needed anymore after upgrading to PHP 5. This took care of the libmysqlclient14 error:

    MySQL Setup Script Version 7.0
    Loaded cPPkgs::MySQL ok!
    This is the cPPkgs::MySQL 5.0.24 installer for Linux.
    MySQL 5.0.24 is up to date
    I guess this function in /scripts/mysqlup is causing the problem:

    Code:
    sub checkphplinkage {
        my ( @LIBS, @LIBS4, @LIBS5, %REQS );
    
        if ( -e '/usr/local/apache/libexec/libphp4.so' ) {
            @LIBS4 = split( /\n/, `ldd /usr/local/apache/libexec/libphp4.so` );
        }
        if ( -e '/usr/local/apache/libexec/libphp5.so' ) {
            @LIBS5 = split( /\n/, `ldd /usr/local/apache/libexec/libphp5.so` );
        }
        @LIBS = grep( /libmysqlclient/,  @LIBS4, @LIBS5 );
        @LIBS = grep( /not\s+found/, @LIBS4, @LIBS5 );
        foreach my $lib (@LIBS) {
            chomp $lib;
            if ( $lib =~ /(libmysqlclient.so.\S+)/ ) {
                $REQS{ $1 } = 1;
            }
        }

  3. #3
    Member
    Join Date
    Apr 2004
    Location
    São Paulo - Brasil
    Posts
    22

    Default

    I had to remove /usr/local/apache/libexec/libphp4.so and recompile apache. This created libphp5.so in /usr/local/apache/libexec/.

    After that I had to comment line
    LoadModule php4_module libexec/libphp4.so

    and uncomment/add line
    LoadModule php5_module libexec/libphp5.so

    Thanks for the tip!
    .marcel touma

  4. #4
    Member equens's Avatar
    Join Date
    Feb 2002
    Posts
    256

    Default

    I have the same problem, do I need to uncomment the LoadModule php5_module libexec/libphp5.so?

    Why cannot Cpanel does it?

  5. #5
    Member
    Join Date
    Apr 2005
    Posts
    246

    Default

    Same problem. Could you people please not assume that everyone who comes here knows what "apache recompile" means, and please include the steps for doing this? I am not sure why PHP 5.2 is not included within WHM, it works very well.

    Please advise how I can move forward. How should I install PHP 5.2 and MySQL 5.0.27 and get Apache to restart again? My entire website is down. Thanks!!

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    21

    Default same problem - bug to fix in findmysql version

    Since the last post there were some changes in the scripts and into the apache configuration file which does not fit under certain circumstances.

    Specifically, mysqlup script uses findmysqlversion now to get the mysql version. however, this fails because it looks into httpd.conf for lines containing:

    LoadModule php5_module modules/libphp5.so

    The problem is that the line above was moved into /usr/local/apache/conf/php.conf and so findmysqlversion will fail when scanning httpd.conf and will try to get the version by running /usr/local/bin/php which will also fail if the library above is not found.

    my solution was to replace httpd.conf with php.conf into findphpversion and update the apache after


    my $sl = cPScript::SafeFile::safeopen( \*APC, '/usr/local/apache/conf/php.conf' );

    hope this helps

Similar Threads & Tags
Similar threads

  1. `libmysqlclient_14' not found
    By Bulent Tekcan in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 01-12-2009, 10:39 PM
  2. How to upgrade php and mysql?
    By xmutan in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-31-2008, 02:25 AM
  3. Mysql 5.x Upgrade - version `libmysqlclient_15' not found
    By teckyhead in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-08-2008, 09:17 AM
  4. Replies: 2
    Last Post: 10-29-2007, 12:17 PM
  5. Replies: 1
    Last Post: 09-29-2007, 07:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube