PHP add mysqli Extension

Source: Internet
Author: User
Tags add config mysql php source code zts
Any PHP extensions can be compiled separately in the PHP source code package here because phpMyAdmin need to mysqli expansion, compile the module installation, process and some problems recorded as follows: PHP compile installation path/usr/local/php5.6 mysql compile installation path/usr /local/mysql5.6 into the mysqli extension path of the PHP source installation package # 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 in 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 then recompile && 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-n On-zts-20131226/mysqli.so modified PHP.ini is added below the dynamic extensions annotation extension=/usr/local/php5.6/lib/php/extensions/ No-debug-non-zts-20131226/mysqli.so

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.