Home >Operation and Maintenance >Linux Operation and Maintenance >Where is the configuration file of php in linux?
1. You can print phpinfo();
Configuration location as shown in the picture:
2. php -info will output the content equivalent to executing the phpinfo() function on the page. Filter out the text containing the configuration file php.ini to see the relevant path information.
php -info | grep php.ini
As shown
3. Usually php default configuration location
/usr/local/php/etc/php.ini
Free online video tutorial sharing: linux video tutorial
The above is the detailed content of Where is the configuration file of php in linux?. For more information, please follow other related articles on the PHP Chinese website!