Home > Backend Development > PHP Tutorial > html - The extension installed by php can be seen with php -m, but not with phpinfo(). Is it still not working after closing php-fpm and reopening it?

html - The extension installed by php can be seen with php -m, but not with phpinfo(). Is it still not working after closing php-fpm and reopening it?

WBOY
Release: 2016-08-26 10:28:23
Original
2228 people have browsed it

ICBC’s PHP payment extension,
html - The extension installed by php can be seen with php -m, but not with phpinfo(). Is it still not working after closing php-fpm and reopening it?
php -m can be viewed, but the phpinfo() page cannot be found. The php.ini file is correct.

html - The extension installed by php can be seen with php -m, but not with phpinfo(). Is it still not working after closing php-fpm and reopening it?

Already restarted or httpd, php-fpm has also been closed, and then opening it still doesn’t work,
System: centos7
php:5.4.0

Does php-fpm require any special settings? PHP was compiled and installed by myself

Reply content:

ICBC’s PHP payment extension,
html - The extension installed by php can be seen with php -m, but not with phpinfo(). Is it still not working after closing php-fpm and reopening it?
php -m can be viewed, but the phpinfo() page cannot be found. The php.ini file is correct.

html - The extension installed by php can be seen with php -m, but not with phpinfo(). Is it still not working after closing php-fpm and reopening it?

Already restarted or httpd, php-fpm has also been closed, and then opening it still doesn’t work,
System: centos7
php:5.4.0

Does php-fpm require any special settings? PHP was compiled and installed by myself

Is it the same php? php -i Check if the configuration is the same

So many questions like this...

  1. Do the php.ini of php-cli and php-cgi load the same one?

  2. Have you added extension=xxx.so to php.ini?

  3. After changing php.ini, did the web server restart? Was the restart really successful?

  4. Are there multiple php versions in the system?

  5. Are the php versions of php-cli and php-cgi the same?

Thank you for the invitation. The corresponding .soconfirm whether it is added in the php.ini file

1. Check if there are multiple versions of php
2. Are different php.ini used? 3. Are apache not restarted?

php -m and phpinfo should be different configuration files. If you can see it in php -m, it means that you only loaded this .so file in the configuration file php -i|grup php.ini. You also You have to go to phpinfo(). In this mode, you can see the location of the configuration file it loaded, and then add the .so file. After adding it, restart the service. It is a perfect solution. I have also encountered this before when doing swoole expansion

This kind of problem is usually caused by the inconsistency between the configuration files of the web version and the cli version

The php.ini path of the web version

<code>/etc/php.ini</code>
Copy after login

cli version php.ini path
<code>终端执行
php -i|grep Loaded\ Configuration\ File</code>
Copy after login

Check it out

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template