The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where's the php setting file?

Discussion in 'General Discussion' started by goodgbb, Sep 20, 2005.

  1. goodgbb

    goodgbb Well-Known Member

    Joined:
    Aug 15, 2005
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
    I need your helping. I've SSH root access and I've WHM root access too.

    Where's the php setting file?
    And How to turn on global variable?


    Thank You So Much :)
     
  2. ngchandak

    ngchandak Well-Known Member

    Joined:
    Apr 5, 2005
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hi,

    the main php file is php.conf you can get that file under.

    /usr/local/apache/conf.d/php.conf
     
  3. goodgbb

    goodgbb Well-Known Member

    Joined:
    Aug 15, 2005
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
  4. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    That file doesn't even exist on my cpanel server, anywhere. Please check advice before posting.

    I do have /usr/local/lib/php.ini but I'm not certain whether that's the main file; I think it is. It's definitely named php.ini and NOT php.conf though, there are NO php.conf files anywhere on my server!
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yup, that's the one /usr/local/lib/php.ini
     
  6. ebinfo

    ebinfo Active Member

    Joined:
    Oct 5, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    I am not sure if it's the one i am using.

    I want to integrate DBG on there. according to my php info the php file i am using is located here: /usr/local/lib/php.ini

    i go in there, and compare the extensions between the file and the phpinfo(), and some extensions are still flagged as commented, while they are shown on the phpinfo() !

    So my guess is that it's not the php file being used, otherwise the commented extensions would not show on the phpinfo.

    Any advices ?
     
Loading...

Share This Page