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!

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:
    151
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Murtaza_t

    Murtaza_t Well-Known Member

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

    Joined:
    Nov 4, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    UK
    Thank you :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    4
    Trophy Points:
    193
    Location:
    Minneapolis, MN
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Harryhood

    Harryhood Well-Known Member

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

    # php -i | grep php.ini

    at the command line. This will output the path to the php.ini file being used.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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