Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default mysql,php issues on new install

    Figured I would post this so it may help someone having this problem.

    There is a bug in the liblinker in mysql-devel 4.1.16 or higher. When trying to compile apache,php the compile will error out with liblinker: can not find /usr/lib/mysql/libz.la. The only known fix if you have this issue is to downgrade the mysql-devel-4.1.x to version 4.1.13. We had this issue this morning on a fresh install and upon researching using google its a known bug affecting RHEL3,4 and CentOS 3,4. The bug also is found in mysql 5.0.16. I repeat the only known fix available at this time is to downgrade the mysql-devel rpm to 4.1.13 or install from the src rpm and recompile apache and php.
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  2. #2
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Here is a little more information

    If you upgrade to mysql 4.1.18 which is in the EDGE version of cpanel apache and php will not compile.

    I had upgraded to EDGE before I did my apache phpsuexec recompile and had to back down mysql-devel to 4.1.13 to get a clean compile.

    If you do your apache compiile before upgrading to 4.1.18 then you can upgrade to 4.1.18 and everything will work
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Not nice.

    I had a similar issue and had to rename /var/lib/mysql/ out of the way, compile apache, then put that directory back and it worked OK.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    598

    Default

    How do you down grade?

  5. #5
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    http://downloads.mysql.com/archives/...ibc23.i386.rpm

    grab this rpm from the mysql website and upload to your server

    then do rpm -Uvh --force /<path to >/MySQL-devel-4.1.13-0.glibc23.i386.rpm

    service mysql restart

    then /scripts/easyapache

    this will fix the libz.la error
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    598

    Default

    Thanks dude!

  7. #7
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    your welcome
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  8. #8
    Member
    Join Date
    Jul 2004
    Posts
    108

    Default

    Thanks for that hint. It worked

  9. #9
    Registered User
    Join Date
    Jun 2005
    Posts
    3

    Default

    Ah!

    Finaly I can get back to sleep. many, many, many, many, thanx. phew!

    Word.

  10. #10
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    we had a similiar issue going to 5.1.2 and and mysql 5.18. Basically httpd wouldn't start. It was complaining about mysql libs. I ran buildapache again and same issue. Nick helped me with this and we wound up installing mysql 5.21 from a generic RPM and apache would then start. The initial error I was getting when restarting httpd was:

    Cannot load /usr/local/apache/libexec/libphp5.so into server:
    /usr/local/apache/libexec/libphp5.so: symbol zlibVersion, version
    libmysqlclient_15 not defined in file libmysqlclient.so.15 with link time
    reference

    Mostly this was due to buildapache failing to continue to compile past the apache part and it would die before php started to compile.

    At some point soon if not already new sPanel builds will be out for mysql's > 5.18 >not sure if this error is related in the 4.X tree. What I think is buildapache was changed slightly on May12th and my prior builds would run. After using the May12th version it would have the above problem. Something in buildapache makes the problem in mysql show itself. We found the bugs listed at mysql.com that referenced my issue and it was fixed in the later versions.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  11. #11
    Member
    Join Date
    Dec 2004
    Posts
    30

    Default

    Hey Dave,

    Thanks for the tip. Was really helpful. Cheers

  12. #12
    Member
    Join Date
    May 2006
    Posts
    19

    Talking

    Quote Originally Posted by dave9000
    http://downloads.mysql.com/archives/...ibc23.i386.rpm

    grab this rpm from the mysql website and upload to your server

    then do rpm -Uvh --force /<path to >/MySQL-devel-4.1.13-0.glibc23.i386.rpm

    service mysql restart

    then /scripts/easyapache

    this will fix the libz.la error
    Thank you! That's exactly what I needed to fix that problem!

  13. #13
    BANNED
    Join Date
    Jul 2005
    Posts
    537

    Default

    Quote Originally Posted by dave9000
    Figured I would post this so it may help someone having this problem.

    There is a bug in the liblinker in mysql-devel 4.1.16 or higher. When trying to compile apache,php the compile will error out with liblinker: can not find /usr/lib/mysql/libz.la. The only known fix if you have this issue is to downgrade the mysql-devel-4.1.x to version 4.1.13. We had this issue this morning on a fresh install and upon researching using google its a known bug affecting RHEL3,4 and CentOS 3,4. The bug also is found in mysql 5.0.16. I repeat the only known fix available at this time is to downgrade the mysql-devel rpm to 4.1.13 or install from the src rpm and recompile apache and php.
    Hmm, im running 4.1.18 on RHEL3 with Php; v4.2.2 with no issues whatsoever.

  14. #14
    Member
    Join Date
    May 2003
    Posts
    49

    Default

    This appear to be a bug with MySQL 4.1.18. Installing the latest MySQL-devel build (4.1.19) fix the problem. cPanel should update their MySQL version more often.

Similar Threads & Tags
Similar threads

  1. PHP page not passing search criteria to MySQL - Since new install
    By djblamire in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-31-2006, 04:59 AM
  2. PHP page not passing search criteria to MySQL - Since new install
    By djblamire in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-30-2006, 07:22 PM
  3. PHP page not passing search criteria to MySQL - Since new install
    By djblamire in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-30-2006, 07:20 PM
  4. Auto Install PHP Script w/MySQL Services?
    By Patrick_M in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-09-2006, 11:24 PM
  5. Install Issues
    By AMERAR in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-05-2005, 05:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube