PHP add mysqli Extension

Source: Internet
Author: User

Any PHP extension can be compiled and installed separately within the PHP source bundle

Here due to phpMyAdmin need mysqli extension, compile the module installation, process and some issues are recorded as follows:

PHP Compiled installation path/usr/local/php5.6

MySQL compilation installation path/usr/local/mysql5.6

Enter the PHP source installation package under the mysqli extension path

# Cd/tmp/php-5.6.15/ext/mysqli

Generate Configure File

#/usr/local/php5.6/bin/phpize

Configuration

#./configure--with-php-config=/usr/local/php5.6/bin/php-config/

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

Compile the installation, if there are no errors during the configuration process, if you encounter any errors at compile time, you will need to recompile PHP and attach

--with-mysql=shared,mysqlnd--enable-sockets=shared These two parameters and recompile

# Make && make install

Installing Shared extensions:/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/

Installing header files:/usr/local/php5.6/include/php/

View So file

ls/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/

Mysqli.so

Modify PHP.ini

Add it below the dynamic extensions comment

Extension=/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/mysqli.so


PHP add mysqli Extension

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.