Direct
# Find/-name "php. ini"
Cannot be found because the configuration file is not copied during PHP installation.
After the PHP version changes, the INI file name will change.
PHP. ini-ProductionCorresponding to PhP. ini-recommended
PHP. ini-developmentCorresponding to PhP. ini-Dist
What are the differences between them?
Due to version updates, these files have a new name:
PHP. ini-production corresponds to PhP. ini-recommended
PHP. ini-development corresponds to PhP. ini-Dist
You usually need to rename PHP. ini-Dist or PHP. ini-recommended to PhP. ini.
The difference between the two is that PHP. ini-Dist is suitable for development programs (for testing ),
PHP. ini-recommended has a high security setting, which is suitable for product launch.
I usually change PHP. ini-recommended or the new PHP. ini-production to PhP. ini to ensure that the test environment (local) is consistent with the formal environment (online.
You need to go back to the PHP installation directory
# Cp PHP. ini-recommended/usr/local/PHP/lib/PHP. ini
Or
# Cp PHP. ini-production/usr/local/PHP/lib/PHP. ini