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.

MySQLi questions [moved]

Discussion in 'General Discussion' started by trparky, Apr 22, 2005.

  1. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    MySQLi questions

    I have compiled Apache/PHP with MySQLi support with PHP 4.3.11.

    with-mysql=/usr
    with-mysqli=/usr/bin/mysql_config

    But, when I attempt to use the MySQLi extension, it says I can't use it.

    When I programmed the following test script, I got the response "false".

    PHP:
    if (function_exists('mysqli_connect')) {
      print 
    "true\n";
    }
    else {
      print 
    "false\n";
    }
    Why is that? How can I fix this?
     
  2. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    Anybody know this?
     
  3. LP-Trel

    LP-Trel Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Nirvana
    MySQLi is only supported in PHP5.
     
  4. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    Than why provide the module? That doesn't make any sense.
     
  5. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Because you should always do proper research before installing new modules. The easyapache system doesn't really have a method of verifying which version of PHP you are installing before giving you the option of installing additional modules, notice it's simply a checkbox between 4.x and 5.0, and a checkbox for mysqli, no real way for them to verify without reworking easyapache.
     
  6. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    Well, actually I didn't choose to install it, EasyApache did. All I did was install MySQL 4.1 via WHM and recompiled Apache/PHP with the "Use System MySQL" option. After that, away it went adding that module. As far as I know, there was no option to install or not install the MySQLi extension.
     
  7. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Hrm, I'll troubleshoot a bit - something seeks quirky.
     
  8. LP-Trel

    LP-Trel Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Nirvana
    It doesn't matter if it uses that compile line with PHP4. The configure script just ignores it. :cool:
     
  9. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    I had same problem easyapache was form 26-th....
    http://bugzilla.cpanel.net/show_bug.cgi?id=2745

    Can somebody confirm that is this bug or pebkac
     
  10. sHORTYWZ

    sHORTYWZ Well-Known Member

    Joined:
    Dec 14, 2003
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
  11. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page