Home > Article > Backend Development > 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?
ICBC’s PHP payment extension,
php -m can be viewed, but the phpinfo() page cannot be found. The php.ini file is correct.
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
ICBC’s PHP payment extension,
php -m can be viewed, but the phpinfo() page cannot be found. The php.ini file is correct.
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...
Do the php.ini of php-cli and php-cgi load the same one?
Have you added extension=xxx.so
to php.ini?
After changing php.ini, did the web server restart? Was the restart really successful?
Are there multiple php versions in the system?
Are the php versions of php-cli and php-cgi the same?
Thank you for the invitation. The corresponding .so
confirm 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?
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>
<code>终端执行 php -i|grep Loaded\ Configuration\ File</code>
Check it out