How does PHP compile MYSQLND extensions separately?

Source: Internet
Author: User
Tags install openssl
Recent toss php, download php 7.0.8

Only PHP-FPM is turned on at compile time

./configure --prefix=/usr/lcoal/php --enable-fpm

I want to add various extensions through Phpize, but I'm having problems with MySQL support.
Phpize was executed under the EXT/MYSQLND directory, after configure was generated
At the time of the./configure, you first get a hint that you cannot find a header file for OpenSSL:

configure: error: Cannot find OpenSSL's 
  
   

Manually modified the variables in the Configure script:

OPENSSL_INCDIR=/usrOPENSSL_LIBDIR=/usr/lib64

Final compilation succeeded, added in php.ini

extension=mysqlnd.so

Or

zend_extension=mysqlnd.so

Are not loaded

Ask, Mysqlnd and FPM can only compile PHP for the first time to add in the Configure?

Reply content:

Recent toss php, download php 7.0.8

Only PHP-FPM is turned on at compile time

./configure --prefix=/usr/lcoal/php --enable-fpm

I want to add various extensions through Phpize, but I'm having problems with MySQL support.
Phpize was executed under the EXT/MYSQLND directory, after configure was generated
At the time of the./configure, you first get a hint that you cannot find a header file for OpenSSL:

configure: error: Cannot find OpenSSL's 
  
   

Manually modified the variables in the Configure script:

OPENSSL_INCDIR=/usrOPENSSL_LIBDIR=/usr/lib64

Final compilation succeeded, added in php.ini

extension=mysqlnd.so

Or

zend_extension=mysqlnd.so

Are not loaded

Ask, Mysqlnd and FPM can only compile PHP for the first time to add in the Configure?

    1. OpenSSL cannot find that PHP itself does not have SSL extensions that need to be installed before SSL extensions

    2. No need to modify the Configure file

    3. Theoretically, all extensions can be dynamically compiled later or added

Can be expanded at a later stage, do not make the install Operation just fine

It feels like you're going to install the OpenSSL extension, and then follow some of the helper methods provided in the Configure Help to compile the OpenSSL installation method
Then you can install MYSQLND extensions like that

Both extensions have a premise that you want to install the SSL extension first to install OpenSSL, you want to install the MYSQLND extension first to install MySQL

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