Why there is mcrypt extension in phpinfo, but there is no php-m.
Reply content:
Why there is mcrypt extension in phpinfo, but there is no php-m.
PHP Info You use the Web to view it?
Now it's usually the FPM way to run the Web.
Php-m is running with the CLI.
That is, FPM is caused by a different configuration from the CLI.
Mobile phone code word is not easy ....
Various operating modes (SAPI), loading different INI files.
Under Linux, the configuration of PHP is divided into several apache,cli,cgi and so on.
You can specify the load php.ini when the CLI is running, so you can get the results you want.
Php-c/etc/php5/apache/php.ini-f test.php
PHP is to call SAPI way to run, we often use the Web page is called PHP-FPM, and Php-m is called command line SAPI, is the CLI, the two are different mode of operation, the former for Web requests, the latter for the command lines.
The two modes have their own configuration files, and in/ETC/PHP5/FPM and/ETC/PHP5/CLI, you'll find that they're actually very similar.
And many people use FPM phenomenon to ask the CLI question ...