PHP add mysqli extension _php tutorial

Source: Internet
Author: User
Tags zts

PHP add mysqli Extension


Any PHP extension can be compiled separately in PHP source package installation here because phpMyAdmin need mysqli extension, compile the module installation, process and some issues are recorded as follows: PHP compilation installation path/usr/local/php5.6mysql compile installation path/usr /local/mysql5.6 Enter 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 compiles the installation, if there are no errors during the configuration, if you encounter any errors at compile time, you need to recompile PHP and attach--with-mysql=shared,mysqlnd--enable-sockets= Shared these two parameters can be re-compiled # make && make installinstalling 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 to the dynamic extensions comment below extension=/usr/local/ Php5.6/lib/php/extensions/no-debug-non-zts-20131226/mysqli.so

http://www.bkjia.com/PHPjc/1075798.html www.bkjia.com true http://www.bkjia.com/PHPjc/1075798.html techarticle php add mysqli Extension any PHP extension can be in the PHP source package compiled separately installed here because phpMyAdmin need to mysqli extension, compile the module installation, process and some problems recorded as follows: ...

  • 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.