The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

bug with mysql5

Discussion in 'General Discussion' started by beerco, Sep 4, 2006.

  1. beerco

    beerco Member

    Joined:
    Nov 25, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    after you update mysql from 4 to 5, php and other programs are still linked to mysql4 libmysqlclient_14.
    Therefore, as soon as you restart apache, the libphp4x.so will fail.

    Just thought I'd drop a line. I'm using cpanel to develop an addon script for phpmail. Not in a production environment so it's no big deal.
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    you may need a apache recompile in order to have the php core files to be properly linked after mySQL upgrade.
     
  3. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    I am facing this problem. How should I do the "apache recompile"? Will it break other apache stuff such as mod_security etc?
     
  4. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    if you compiled apache initially with easyapache (via CPANEL WHM),
    then just do it again,
    go to "Software -> Apache Update"
    click "load previous config"

    and UNCHECK!! Skip Apache Build if up to date

    then doublecheck the other checkboxes..
    then build..
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Even easier ... just symlink to the updated library file!

    Only takes like 2 seconds ....
    Code:
    mv /usr/local/cpanel/lib/libmysqlclient.so.14 /usr/local/cpanel/lib/libmysqlclient.so.14.backup
    ln -s /usr/lib/libmysqlclient.so.15.0.0 /usr/local/cpanel/lib/libmysqlclient.so.14
    
    Don't forget to restart Apache afterwards
     
Loading...

Share This Page