How to find right location of php.ini server's configuration file ?

Started by Administrator, September 16, 2014, 06:52:05 PM

Previous topic - Next topic

Administrator

Hello Guys,

If you want to edit the php.ini file on server and don't know correct location of php.in file then this post will help you.  Below is the command to find location of php.ini server file.

Quote#php -i | grep php.ini

It will show the path as like below.

Quote# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini


Now you got the location of file, you can edit your php setting for server.

Enjoy !!
MilesWeb - Your Hosting, Our Responsibility!
Buy Web Hosting Plans | Managed VPS with 50% Discount