MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length



SMF - Just Installed!

Author Topic: How to find right location of php.ini server's configuration file ?  (Read 9924 times)

0 Members and 1 Guest are viewing this topic.

Offline Administrator

  • Chinmay Dingore
  • Administrator
  • Full Member
  • *****
  • Posts: 135
  • Karma: +1/-0
    • View Profile
    • MilesWeb Internet Services Pvt Ltd
Hello Guys,

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

#php -i | grep php.ini

It will show the path as like below.

# 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 !!
« Last Edit: September 16, 2014, 06:54:56 PM by Administrator » - Your Hosting, Our Responsibility!
Unlimited Hosting Plans | Managed VPS with 25% Discount

MilesWeb Hosting Forum