I am searching for php.ini, i cannot find it

Discussion in 'Site & Server Administration' started by FireStorM, Nov 11, 2011.

  1. #1
    Hello,

    I am searching for php.ini everywhere in my server, in etc , usr etc but it cannot be found, can someone explain to be in details how to make a search and look for it ?



    Thanks
     
    FireStorM, Nov 11, 2011 IP
  2. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #2
    One simple way is to view a phpinfo.php file from your browser.

    Sometimes a server may not have one, which means php will simply run its default settings.

    Here are a few simple ways to search a server via ssh:

    locate php.ini
    or
    find / -name php.ini -print
    Code (markup):
    As mopays is running WHM, php.ini is ran out of /usr/local/lib/php.ini by default.
     
    AnthonyG, Nov 11, 2011 IP
  3. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #3
    Hello there,

    You can do this as well, from the cli:

    php -i | grep php.ini

    Chris
     
    RHS-Chris, Nov 12, 2011 IP
  4. nihangshah

    nihangshah Prominent Member

    Messages:
    5,536
    Likes Received:
    271
    Best Answers:
    3
    Trophy Points:
    395
    #4
    nihangshah, Nov 12, 2011 IP