Get the App
SLTechnology News&Howtos  ›  Servers  › 

What path is the php configuration file in linux placed in?

Shulou Source: shulou.com Published: 2022-06-03 05:59:37 09月21日 Update

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!

Tags: Configuration file location content such as figure path information function that is text article is in more page output Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Microsoft Apple MariaDB Shulou Technology