Where is php.ini placed?

  

On Unix, the php.ini file is placed by default on /usr/local/lib because the default storage path is <install-path> /lib, but it can be used at compile time --with -config-file-path parameter to modify the location of php.ini, for example you can use --with- config-file-path=/etc to store it in /etc, then you can copy php.ini from the source package -dist to /etc/php.ini and modify it to suit your needs.

The default location of php.ini on Windows is the windows system directory. If you use Apache, you will first find php.ini from the Apache installation directory, for example: c:program filesapache groupapache, so that you You can set different php.ini files for different Apache versions on the same machine.

Copyright © Windows knowledge All Rights Reserved