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 4 & 5 ini location

Discussion in 'General Discussion' started by Jikson26, Sep 13, 2007.

  1. Jikson26

    Jikson26 Registered

    Joined:
    Aug 8, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    When you have both installed and running simultaneously, where are both .ini files located?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    PHP 4:

    /usr/local/php4/etc/php.ini

    PHP 5:

    /usr/local/lib/php.ini

    With the concurrent installs, PHP 5 is always installed as the system default.
     
  3. bin_asc

    bin_asc Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    Now he tells us :P
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You can also glean that info from either php-config or php - | grep ini (of course, *after* doing a concurrent PHP setup)
     
  5. bin_asc

    bin_asc Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    php -i | grep php.ini only gives one of the php`s ini file.
     
Loading...

Share This Page