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.

Correct Path To Working PHP.INI

Discussion in 'General Discussion' started by purple-support, Jan 20, 2006.

  1. purple-support

    Joined:
    Nov 4, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    Dear Forum Members,

    I have several php.ini configs, but which one does cpanel and php utilize?

    /home/cp_inst/installd/buildapache/php-4.3.3/php.ini-dist
    /home/cp_inst/installd/buildapache/php-4.3.3/php.ini-recommended
    /home/cp_inst/installd/buildapache/php-4.3.3/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.4.0/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.4.0/php.ini-recommended
    /home/cpapachebuild/buildapache/php-4.4.0/php.ini-dist
    /home/godzuki/etc/php.ini
    /home/cpzendinstall/ZendOptimizer-2.5.7-linux-glibc21-i386/zui_files/php.ini
    /home/cpzendinstall/ZendOptimizer-2.5.7-linux-glibc21-i386/zui_files/_usr_local_lib_php.ini
    /usr/lib/php.ini
    /usr/local/lib/php.ini
    /usr/local/lib/php.ini.new
    /usr/local/lib/php.ini-zend_optimizer.bak
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /usr/local/Zend/etc/php.ini
    /usr/local/Zend/etc/php.ini-zend_optimizer.bak
    /usr/local/Zend/etc/php.ini.Dec28
    /var/cpanel/version/php.ini-2
    /etc/php.ini
    /scripts/php.ini
     
  2. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    /usr/lib/php.ini --- thats the one to need look at.
     
  3. purple-support

    Joined:
    Nov 4, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    Thank you :)
     
  4. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hmm mine is /usr/local/lib/php.ini

    well actually /usr/lib/php.ini -> ../local/lib/php.ini


    :)
    Im running Trustix
     
  5. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
  6. Harryhood

    Harryhood Well-Known Member

    Joined:
    Jun 3, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Gamehenge
    run

    # php -i | grep php.ini

    at the command line. This will output the path to the php.ini file being used.
     
Loading...

Share This Page