Ask a question about php-fpm

Source: Internet
Author: User
Ask a question about php-fpm when integrating with nginx .. Phpinfo & nbsp; Display & nbsp; pdo & nbsp; is disable under apache, and PDO is enabled. Under nginx php-fpm also enable & nbsp; PDO Ah ------ solution -------------------- PHP-FPM is actually a PHP source code patch, designed to FastCGI into ask a question about php-fpm
When integrating with nginx .. Phpinfo shows that pdo is disable

In apache, PDO is enabled.

In nginx, php-fpm also enables PDO.
------ Solution --------------------
PHP-FPM is actually a patch of PHP source code, designed to integrate FastCGI process management into the PHP package. You must patch it to your PHP source code before using it after compiling and installing PHP.

I don't believe the FastCGI method is better than the Module method.
------ Solution --------------------
Reference:
It's not because I just compiled -- with-pdo .. Seems to be enabled by default?

It is indeed enabled by default. it is wrong. But -- with-pdo-mysql still needs to be added.

Reference:
PHP-FPM is actually a patch of PHP source code, designed to integrate FastCGI process management into the PHP package. You must patch it to your PHP source code before using it after compiling and installing PHP.

I don't believe the FastCGI method is better than the Module method.

Nginx has a lot of credit

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.