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.

php.ini file

Discussion in 'General Discussion' started by mitk, Feb 9, 2006.

  1. mitk

    mitk Well-Known Member

    Joined:
    May 14, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Which path does cpanel use for the php.ini file on a red hat machine? i have like 8 listed and not sure what one to edit
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    I believe the output of the PHP function phpinfo() includes the path to the correct php.ini file.
     
  3. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Where the file is depends on how php is installed. And you'll probably find that there really is only one true php.ini, and that the rest are symlinks. :)

    From cmd line:
    Code:
    php -i | grep "php.ini"
     
Loading...

Share This Page