Php-m see different extensions and phpinfo.

Source: Internet
Author: User
Tags fpm phpinfo

Recently made a very stupid mistake in doing PHP projects, recording, if someone encounters later, provide a check idea.

The process of the matter is this:
First, the development server on the PHP-FPM master process was killed by a colleague, leaving the 100+ worker process, so can only killall php-fpm;
Next, start FPM, and execute to the Sbin directory:

./php-fpm-c. /lib/php-fpm.conf

Then the project is a variety of extensions can not find, all kinds of error.
The expansion of Php-m and phpinfo () is completely different.
It is obvious that the configuration file has been incorrectly specified. But the configuration File (php.ini) path in Phpinfo and Php-m is the same ... It's not right to look.
All kinds of tangle ...
suddenly a glance, found phpinfo inside loaded Configuration file is php-fpm.conf ...

So, the script to start FPM should be:
php-fpm
Do not need to specify-C, if the use of-C, you will specify the file as a php.ini, so the extension of the load is of course empty slightly ...
Dig your own hole and jump.

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.