I just want to know why both Apache httpd and php environment need a php.ini file. Does modifying one of them require updating the other?
If someone can recommend a specific book, article or tutorial to help me understand this, that would be helpful thank you.
php.ini exists for the global web server process. It can also exist for each individual vhost
.
It is searched for in the following order:
PHPIniDir
directive defined by the vhostPHPRC
environment variable (as of PHP 5.2.0)[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z]
, [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y]
and [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x]
, where x, y and z mean the PHP major, minor and release versions. If there is a value for IniFilePath in any of these keys, the first one found will be used as the location of the php.ini (Windows only). C:\Windows
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With