linux - Query php configuration file in centos

WBOY
Release: 2016-09-19 09:16:26
Original
1475 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!