Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    5

    Default how want to enable mysqli

    i want to enable mysqli

    i searched for that and i found i have to run this
    Code:
    ./configure --with-mysql=/usr –with-mysqli=/usr/bin/mysql_config
    but its return that
    Code:
    -bash: ./configure: No such file or directory
    if this right where i have to write this command to run right
    Code:
    ./configure --with-mysql=/usr –with-mysqli=/usr/bin/mysql_config
    if no what i have to do to enable it ??

    kindly if anybody can help me show me the steps in details
    i hope anybody can help me in that

    thnx alot all

  2. #2
    Member
    Join Date
    Jul 2006
    Posts
    290

    Default

    You can enable this through easy apache, then go to the exhaustive options list.

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by ChrisRHS View Post
    You can enable this through easy apache, then go to the exhaustive options list.
    ChrisRHS is correct; enabling the "mysqli" extension in PHP (v5) may be performed via EasyApache, using the Exhaustive Options List.

    For additional reference on using EasyApache I recommend the following documentation resources:
    Apache & cPanel/WHM
    The Options Lists
    EasyApache (Apache Update)
    Exhaustive Options List

    EastApache may be found in WHM at the following menu path:
    WHM: Main >> Software >> EasyApache (Apache Update)

    EasyApache may also be initiated using the following command via root SSH access:
    Code:
    # /scripts/easyapache

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    5

    Default

    Quote Originally Posted by ChrisRHS View Post
    You can enable this through easy apache, then go to the exhaustive options list.
    thnx alot ChrisRHS

    Quote Originally Posted by cPanelDon View Post
    ChrisRHS is correct; enabling the "mysqli" extension in PHP (v5) may be performed via EasyApache, using the Exhaustive Options List.

    For additional reference on using EasyApache I recommend the following documentation resources:
    Apache & cPanel/WHM
    The Options Lists
    EasyApache (Apache Update)
    Exhaustive Options List

    EastApache may be found in WHM at the following menu path:
    WHM: Main >> Software >> EasyApache (Apache Update)

    EasyApache may also be initiated using the following command via root SSH access:
    Code:
    # /scripts/easyapache
    thnx alot cPanelDon

    i do that and choose

    Mysql
    compile MySQL support using the PHP bundled libraries (if the System MySQL option is checked it takes precedence over this option)

    Mysql of the system
    compile mysql (and mysqli if its checked) support against the system libraries

    MySQL "Improved" extension.
    MySQLi does not replace the standard MySQL extension. Requires MySQL 4.1 or later. !! mysqli may not work on all systems, contact your support provider for mysqli support !!


    finished when check if this function exist or no it show me no ??

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by A7med Baraka View Post
    thnx alot ChrisRHS

    thnx alot cPanelDon

    i do that and choose
    Mysql: compile MySQL support using the PHP bundled libraries (if the System MySQL option is checked it takes precedence over this option)

    Mysql of the system: compile mysql (and mysqli if its checked) support against the system libraries

    MySQL "Improved" extension: MySQLi does not replace the standard MySQL extension. Requires MySQL 4.1 or later. !! mysqli may not work on all systems, contact your support provider for mysqli support !!

    finished when check if this function exist or no it show me no ??
    The following command may be used to list MySQL modules installed in PHP:
    Code:
    # /usr/local/bin/php -m | grep -i mysql
    As an example, you might see "mysql" and "mysqli"
    Code:
    # /usr/local/bin/php -m | grep -i mysql
    mysql
    mysqli

  6. #6
    Member
    Join Date
    Jan 2010
    Posts
    5

    Default

    yes it return
    mysql
    mysqli

    but when test it using
    PHP Code:
    <?php
    if (function_exists('mysqli')) {
        echo 
    "Yes.<br />\n";
    } else {
        echo 
    "No.<br />\n";
    }
    ?>
    it shown me NO ??!!
    any suggest ??

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by A7med Baraka View Post
    yes it return
    mysql
    mysqli

    but when test it using
    PHP Code:
    <?php
    if (function_exists('mysqli')) {
        echo 
    "Yes.<br />\n";
    } else {
        echo 
    "No.<br />\n";
    }
    ?>
    it shown me NO ??!!
    any suggest ??
    The provided PHP script is not a valid test for MySQLi support; a minor edit to the script will help; change mysqli to mysqli_connect.

    Please refer to the official PHP documentation for more verbose details: PHP: The MySQLi Extension Function Summary - Manual

  8. #8
    Member
    Join Date
    Jan 2010
    Posts
    5

    Default

    Quote Originally Posted by cPanelDon View Post
    The provided PHP script is not a valid test for MySQLi support; a minor edit to the script will help; change mysqli to mysqli_connect.

    Please refer to the official PHP documentation for more verbose details: PHP: The MySQLi Extension Function Summary - Manual
    also return NO ??

  9. #9
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by A7med Baraka View Post
    also return NO ??
    When loading a PHP info page from the same path as the other script(s):
    1.) Does it show PHP version 4 or does it show PHP version 5?
    2.) Does it indicate support for MySQLi?
    Code:
    <?php
    phpinfo();
    ?>
    Reference: PHP: phpinfo - Manual


    Is MySQL at least version 4.1.13 or newer or 5.0.7 or newer? The following commands via SSH access could be used to confirm:
    Code:
    # mysql -V
    # mysqld -V
    # mysqladmin version | grep -i ver
    Reference: PHP: MySQLi Requirements - Manual
    Last edited by cPanelDon; 01-06-2010 at 04:05 PM. Reason: Clarification

Similar Threads & Tags
Similar threads

  1. How to enable MySQLi module/extension
    By Celep in forum New User Questions
    Replies: 2
    Last Post: 10-20-2006, 04:15 AM
  2. MySQL and MySQLi
    By Olate in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-09-2006, 04:07 PM
  3. Setting up MySQLi
    By aaroncampbell in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-03-2005, 01:21 PM
  4. MySQLi Support?
    By xmlmania in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-14-2005, 11:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube