Get the App
SLTechnology News&Howtos  ›  Development  › 

How to find the path to the PHP configuration file php.ini

Shulou Source: shulou.com Published: 2022-06-03 08:51:44 11月15日 Update

Editor to share with you how to find out the path of the PHP configuration file php.ini, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Generally, there are only two platforms for installing PHP environment, Linux environment and WIN platform. And the WIN platform is mostly, because now the package installation package is very convenient, such as appserv, wamp one installation package and so on. And Linux also has LNMP one-click installation package, which is very convenient. Because these installations are simplified, many bloggers naturally don't know which directory php.ini will be placed in after the environment is installed, or find the php.ini file in a directory but don't know if it's the one called by the PHP program.

We can find the php.ini path through phpinfo

Create a new php page and enter:

[code]

[code]

Save exit

Visit the page using a browser and you will see a page related to PHP configuration information

Find the line Configuration File (php.ini) Path

The value / usr/local/webserver/php/etc on the right is the directory where the php.ini file is located.

After the final revision, you should remember to restart the relevant program before it can take effect.

The above is all the contents of the article "how to find the path to the PHP profile php.ini". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Files paths configuration platform environment directories articles pages content programs one line not much information can be passed right most packages that is where more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi macOS Shulou Information Docker