Php-m extension installed in html-php can be seen, but phpinfo () cannot be seen. does php-fpm close and re-open?

Source: Internet
Author: User
The PHP payment extension of ICBC can be viewed by php-m, but the phpinfo () page cannot be found. The php. ini file is correct. I have restarted or httpd, and php-fpm is also disabled. then I still cannot enable it. Do I need to set the system: centos7php: 5.4.0php-fpm? Php is...

ICBC's PHP payment extension,

Php-m can be viewed, but the phpinfo () page cannot be found. The php. ini file is correct.

It has already restarted or httpd, and php-fpm has also been disabled. then it still cannot be enabled,
System: centos7
Php: 5.4.0

Does php-fpm require special settings? Php is compiled and installed by yourself.

Reply content:

ICBC's PHP payment extension,

Php-m can be viewed, but the phpinfo () page cannot be found. The php. ini file is correct.

It has already restarted or httpd, and php-fpm has also been disabled. then it still cannot be enabled,
System: centos7
Php: 5.4.0

Does php-fpm require special settings? Php is compiled and installed by yourself.

Is the samephp?php -iCheck whether the configuration is the same.

A lot of such problems ..

  1. Is php-cli the same as php-cgi's php. ini?

  2. Someextension=xxx.soAdd to php. ini?

  3. After changing php. ini, has the web server restarted? Is the restart successful?

  4. Does the system contain multiple php versions?

  5. Is php-cli the same version as php-cgi?

Thank you for your invitation. Corresponding.soCheck whether the php. ini file has been added.

1. check whether multiple php versions exist.
2. are different php. ini files used?
3. have you not restarted apache?

Php-m and phpinfo should be different configuration files. what you can see in php-m indicates that you only use php-I | grup php. this is added to the configuration file ini. so this file, you have to go to phpinfo (). in this mode, you can see the location of the configuration file that he loads, and then add it. after adding the so file, restart the service and solve the problem perfectly. I have encountered swoole expansion before.

This type of problem generally occurs when the configuration files for the web and cli versions are inconsistent.
Php. ini path for the web version

/etc/php.ini

Php. ini path for cli

Terminal executes php-I | grep Loaded \ Configuration \ File

Check it.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.