Home >Backend Development >PHP Tutorial >linux - Query php configuration file in centos

linux - Query php configuration file in centos

WBOY
WBOYOriginal
2016-09-19 09:16:261514browse

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.
linux - Query php configuration file in centos

linux - Query php configuration file in centos

linux - Query php configuration file in centos

linux - Query php configuration file in centos

Reply content:

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.
linux - Query php configuration file in centos

linux - Query php configuration file in centos

linux - Query php configuration file in centos

linux - Query php configuration file in centos

You search find / -name php.ini-development or find / -name php.ini-productionTry it out

Commandphp --ini
You can find where the configuration is

php -i | grep "Configuration File"

linux - Query php configuration file in centos

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Data consistency issuesNext article:Data consistency issues