Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    168
    Anybody know this?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. LP-Trel

    LP-Trel Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Nirvana
    MySQLi is only supported in PHP5.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    168
    Than why provide the module? That doesn't make any sense.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    168
    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:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    168
    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:
    166
    Location:
    Nirvana
    It doesn't matter if it uses that compile line with PHP4. The configure script just ignores it. :cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    316
    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:
    49
    Likes Received:
    1
    Trophy Points:
    156
  11. gemby

    gemby Well-Known Member
    PartnerNOC

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice