Tell you two ways to find the path of the php configuration file php.ini. Usually the location of php.ini is: /etc directory or /usr/local/lib directory.
Then visit the page in the browser and search for php.ini. The environment variable results in the phpinfo function are used. 2. Execute, (you need to modify php to your own path) The path where php.ini is located will be displayed. Which path does not contain the php.ini file?
The method to modify the location of php.ini is as follows: The php.ini file is placed on /usr/local/lib by default, You can use the --with-config-file-path parameter during compilation to modify the storage location of php.ini. All roads lead to Rome. When searching for the location of the php.ini file, you can refer to one of the above two methods, both of which can achieve your needs. |