View Tutorial Metadata Edit Content Revision History Add to Watchlist Add New Tutorial Locate your PHP Configuration file

Locate your PHP Configuration file(s)

How to find where PHP loads its configuration from

Here's how to find out where does PHP load its configuration.

From the Command Line Interface

Assuming you have access to the command line on the system where you want to check, you can simply use

php --ini

This will display all the loaded configuration files

On a remote server

It's a common situation that you only have access to PHP through your web server. In this case, you should read Obtaining information about your PHP Installation with phpinfo() .

In the phpinfo output, you should then see the configuration file path under "Loaded Configuration File".

Only plain text supported.

Optional

Required - will be kept private

Optional

 
 

Rating: (0+, 0-) In: PHP 5