Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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,563
    Likes Received:
    42
    Trophy Points:
    308
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bin_asc

    bin_asc Well-Known Member

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

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    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)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bin_asc

    bin_asc Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice