Where is php. ini ?. On Unix, php (as the mainstream development language ). the INI file is put on usrlocallib by default, because the default storage path is install-pathlib, but can be used on Unix during compilation, php (as the mainstream development language ). INI files are stored on/usr/local/lib by default, because the default storage path is /Lib, but you can use the -- with-config-file-path parameter during compilation to modify php (as the mainstream development language ). ini storage location. for example, you can use -- with-config-file-path =/etc to store it under/etc, then you can copy php from the source code package (as the mainstream development language ). ini-dist to/etc/php (as the mainstream development language ). ini and modify it to meet your needs.
Php on Windows (as the mainstream development language ). the default location of ini is the windows system directory. If apache (the most popular WEB server platform on Unix) is used, it will first begin with apache (the most popular WEB server platform on Unix) find php in the installation directory (as the mainstream development language ). ini, for example: c: program filesapache (the most popular WEB server platform on the Unix platform) groupapache (the most popular WEB server platform on the Unix platform ), in this way, you can set different php (as the mainstream development language) for different apache (the most popular WEB server platform on Unix) versions on the same machine ). ini file.
Development (as the mainstream development language ). the INI file is put on/usr/local/lib by default, because the default storage path is install-path/lib, but it can be used during compilation...