How to find path to php.ini file

Most of the people very hard to find the php.ini file location on server, if we find the php.ini file using fine command, it’s showing “N” number of files and path and you will be confused.

The easy way to find the original php.ini path location on your server, just follow our article.

Just create the info.php file on your domain hosted path and put the below content. Common php.ini file location is /usr/local/lib/php.ini

<? phpinfo(); ?>

Open the file in your browser, like php.ini file path.

Then find the php.ini word on your page, you will be getting two path and the actual path is “Loaded Configuration File”

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...