html-php installed extension php-m can see, but phpinfo () do not see, php-fpm turned off reopen or not?

Source: Internet
Author: User
Tags phpinfo

ICBC's PHP payment extension,

Php-m can see, but the phpinfo () page is not found, php.ini file is correct.

has been restarted or httpd, PHP-FPM also closed, and then open or not,
System: CENTOS7
php:5.4.0

Do you need any special settings for PHP-FPM? PHP is compiled and installed by itself

Reply content:

ICBC's PHP payment extension,

Php-m can see, but the phpinfo () page is not found, php.ini file is correct.

has been restarted or httpd, PHP-FPM also closed, and then open or not,
System: CENTOS7
php:5.4.0

Do you need any special settings for PHP-FPM? PHP is compiled and installed by itself

Is that the same one php ? php -iSee if the same configuration

A lot of such questions.

    1. Php-cli and php-cgi's php.ini load the same one?

    2. extension=xxx.sodid you add the php.ini to the house?

    3. After changing the php.ini, did the Web server restart? Did the restart really succeed?

    4. Is there more than one PHP version in the system?

    5. are PHP php-cli and php-cgi the same version?

Thank you for inviting me. The corresponding .so confirmation is added in the php.ini file.

1, check whether there are multiple versions of PHP
2, is not the use of different php.ini
3. Did not restart Apache

Php-m and phpinfo should be different profiles that you can see in php-m, stating that you only loaded this in the Php-i|grup php.ini configuration file. So this file, you still have to be in phpinfo (). This mode below see his loaded configuration file location, and then also Add. so file, after the addition, restart the service, the perfect solution, I used to engage in swoole expansion has also met

This kind of problem is usually the web version and the CLI version of the configuration file inconsistency
PHP.ini path for Web Edition

/etc/php.ini

CLI version of the php.ini path

终端执行php -i|grep Loaded\ Configuration\ File

Check it out.

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