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.