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 + PHP 5 -- Where the heck is the second php.ini?

Discussion in 'General Discussion' started by M0nKeY, Aug 13, 2012.

  1. M0nKeY

    M0nKeY Member

    Joined:
    Jul 8, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    So I installed PHP 4/5 and there used to be 2 ini files when you installed both

    located in
    /usr/local/lib/php.ini
    /usr/local/php4/lib/php.ini

    but on this new server there's only the one ini in /usr/local/lib

    Both version of php are functioning just fine... are they running off one ini?
     
  2. M0nKeY

    M0nKeY Member

    Joined:
    Jul 8, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    OK looks like php4 is still looking /usr/local/php4/lib for its ini but the unsupported module does not even create a php.ini at all

    err??
     
  3. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Yes, PHP can work without having php.ini file and it will take the default values when the conf file its looking doesn't exist. You can copy php.ini file to the location it is looking for ( check php -i ) and it should load fine. Anyway it is not recommended to have PHP 4 on your server as its already announced as an unsupported php version from EA3 and it's been crossed its EOL ages back.
     
Loading...

Share This Page