MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Administrator on September 16, 2014, 06:52:05 PM

Title: How to find right location of php.ini server's configuration file ?
Post by: Administrator on September 16, 2014, 06:52:05 PM
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 !!