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.

Easy apache compile error with enable extention Mysqli on cloudlinux

Discussion in 'CloudLinux' started by vipin, Sep 21, 2013.

  1. vipin

    vipin Active Member

    Joined:
    Aug 23, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,


    Easy apache failed to compile mysqli extension on my cloudlinux box with mysql governor installed.


    Code:
    ext/mysqli/.libs/mysqli.o: In function `php_local_infile_error':
    /home/cpeasyapache/src/php-5.3.27/ext/mysqli/mysqli.c:1495: undefined reference to `client_errors'
    ext/mysqli/.libs/mysqli.o: In function `php_local_infile_read':
    /home/cpeasyapache/src/php-5.3.27/ext/mysqli/mysqli.c:1419: undefined reference to `client_errors'
    ext/mysqli/.libs/mysqli.o: In function `php_local_infile_init':
    /home/cpeasyapache/src/php-5.3.27/ext/mysqli/mysqli.c:1372: undefined reference to `client_errors'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
    !! 'make -j2' failed with exit code '512' !!
    !! Restoring original working apache !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Restarting 'httpd' ... !!
    !! 'httpd' restart complete. !!

    Please help !
     
  2. iseletsk

    iseletsk Well-Known Member

    Joined:
    Mar 3, 2010
    Messages:
    163
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Princeton, New Jersey, United States
    Please, run:
    /usr/share/lve/dbgovernor/mysqlgovernor.py --delete

    There is an issue with latest version of MySQL packed with MySQL governor. It should be fixed on Monday, but for now disabling governor/reverting old MySQL (see command above) is the way to solve the issue.
     
  3. vipin

    vipin Active Member

    Joined:
    Aug 23, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you iseletsk :)

    I solved the problem by adding custom mysqli configure flags as :

    # touch /var/cpanel/easy/apache/rawopts/all_php5
    # vi /var/cpanel/easy/apache/rawopts/all_php5

    added following lines:

    --enable-mysqlnd
    --with-mysqli=mysqlnd

    unchecked mysqli option from easyapache

    then rebuild build php :

    # /scripts/easyapache
     
Loading...

Share This Page