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.

Apache Compilation Issues with PHP5 and MySQL

Discussion in 'EasyApache' started by xmlmania, Jun 1, 2005.

  1. xmlmania

    xmlmania Member

    Joined:
    Jan 4, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I've got a new server with Fedora Core 3 installed and I'm having compilation problems to get the Apache setup I require.

    I get this error if I compile apache with php 5 with the mysql module but without checking "use system mysql":

    configure: error: --with-mysql (using bundled libs) can not be used together with --with-mysqli.

    If I compile apache with php 5 with the mysql module AND check "use system mysql":

    make: *** [libphp5.la] Error 1

    I need to get apache working with both libxml... I need PHP5 support and MySQL.

    Also note the Mysql version on the server is 4.1.x, I also require this for its unicode support.

    Any help would be much appreciated!
     
  2. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    Leave the use system mysql unchecked. MySQL and PHP will work fine without that being checked.
     
  3. xmlmania

    xmlmania Member

    Joined:
    Jan 4, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Not sure if you read my problem correctly, but if I DO leave system mysql unchecked I get this error:

    configure: error: --with-mysql (using bundled libs) can not be used together with --with-mysqli.

    If I compile without the mysql moduel PHP compiles fine, but without MySQL support, unfortunately I need MySQL support.

    Can anyone help?
     
  4. webbi

    webbi Registered

    Joined:
    Oct 15, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am getting the exact same error, any one found a solution for this?
     
  5. sureshot

    sureshot Member

    Joined:
    Mar 6, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    it looks like the problem is with the mysqli libraries and php5.
    i did this and it *seems* to be working now:

    ran /scripts/easyapache from command line
    went through configure [i chose option 6 and left the defaults]
    after it saved configuration file CTRL-C the configure process and you will be kicked back to the command line.

    cd into /hom/cpapachebuild/buildapache and edit buildscript with your favorite editor. i searched for the mysqli section and commented the whole chunk out [use '#' at beginning of line]

    save the file, then run ./buildscript and let it work it's magic.


    like i said, it *seems* to be working fine. i've tested some scripts and haven't found any problems. i take no responsibility if you follow my steps above and break your installation. if that happens, just login into WHM and rebuild apache from there with php4 and it should get you back in business.

    good luck.
     
Loading...

Share This Page