What path is the php configuration file in linux placed in?
1. You can print phpinfo ()
As shown in the figure, configure the location:
2. Php-info will output the content equivalent to executing the phpinfo () function on the page. After considering the text that contains the configuration file php.ini, you can see the relevant path information.
Php-info | grep php.ini
As shown in the picture
3. Usually the default configuration location of php
/ usr/local/php/etc/php.ini
These are the details of where the configuration file of php in linux is. For more information, please follow other related articles!