Home >Backend Development >PHP Tutorial >linux - Query php configuration file in centos
PHP and apache are installed in the server, but since apache does not parse PHP, I need to find the PHP configuration file to configure it. However, I used find / -name 'php.ini' and could not find the PHP configuration file, but I used php -version You can check the version of PHP, please give me an expert's answer. I used php --ini to find the path, but I can't find the configuration file.
Attached is the screenshot.
PHP and apache are installed in the server, but since apache does not parse PHP, I need to find the PHP configuration file to configure it. However, I used find / -name 'php.ini' and could not find the PHP configuration file, but I used php -version You can check the version of PHP, please give me an expert's answer. I used php --ini to find the path, but I can't find the configuration file.
Attached is the screenshot.
You search find / -name php.ini-development
or find / -name php.ini-production
Try it out
Commandphp --ini
You can find where the configuration is
php -i | grep "Configuration File"