1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php.ini location?

Discussion in 'General Discussion' started by pacificw, Oct 10, 2007.

  1. pacificw

    pacificw Member

    Joined:
    Aug 26, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    where is the correct php.ini config file? this is what's listed when I do a "locate php.ini" -- I do have both PHP4 & PHP5 running.

     
  2. mtindor

    mtindor Active Member

    Joined:
    Sep 14, 2004
    Messages:
    1,182
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    inside a catfish
    If you have Zend installed, then it is:

    /usr/local/Zend/etc/php.ini

    If you do not have Zend installed, then it is:

    /usr/local/lib/php.ini

    NOTE: For users who have Zend installed, /usr/local/lib/php.ini will exist as a symlink to the actual file, /usr/local/Zend/etc/php.ini.

    Mike
     
  3. pacificw

    pacificw Member

    Joined:
    Aug 26, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    thanks Mike.
     
  4. CoolMike

    CoolMike Member

    Joined:
    Sep 6, 2001
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    16
    you can also use this command to find the right location:

    php -i |grep php.ini
     
  5. d_t

    d_t Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    or check the result of phpinfo() function
     

Share This Page