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.

QUICK Question!

Discussion in 'General Discussion' started by Andrej, Feb 1, 2005.

  1. Andrej

    Andrej Member

    Joined:
    Jan 6, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Toronto, Canada
    Where is the cPanel/WHM php.ini located? I did a locate on the system and found

    Code:
    /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
    /var/cpanel/version/php.ini-2
    /home/cpapachebuild/buildapache/php-4.3.9/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.3.9/php.ini-recommended
    /home/cpapachebuild/buildapache/php-4.3.9/php.ini-dist
    /home/cpzendinstall/ZendOptimizer-2.5.5-linux-glibc21-i386/zui_files/php.ini
    /etc/php.ini
    /installd/buildapache/php-4.3.3/php.ini-dist
    /installd/buildapache/php-4.3.3/php.ini-recommended
    /installd/buildapache/php-4.3.3/pear/tests/php.ini
    Which one should I edit for it to take effect?
     
  2. bking

    bking Well-Known Member

    Joined:
    Mar 1, 2004
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney

    Quick answer...

    php -i | grep ini
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    To be 112% sure, check what the output of the PHP function phpinfo() tells you - this is the one it will be using.
     
  4. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    usr/local/Zend/etc/php.ini
     
Loading...

Share This Page