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.

which php.ini to edit

Discussion in 'General Discussion' started by netnameus, Mar 9, 2005.

  1. netnameus

    netnameus Well-Known Member

    Joined:
    Mar 7, 2004
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    I have found multiple php.ini files on my system... which ones should I edit?

    /etc/php.ini
    /home/cpapachebuild/buildapache/php-4.3.10/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.3.10/php.ini-recommended
    /home/cpapachebuild/buildapache/php-4.3.10/php.ini-dist
    /installd/buildapache/php-4.3.9/pear/tests/php.ini
    /installd/buildapache/php-4.3.9/php.ini-dist
    /installd/buildapache/php-4.3.9/php.ini-recommended
    /usr/lib/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /usr/local/lib/php.ini.new
    /usr/local/lib/php.ini
    /var/cpanel/version/php.ini-2


    Thanks
     
  2. netnameus

    netnameus Well-Known Member

    Joined:
    Mar 7, 2004
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
  3. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    For anyone else wanting to know the answer to this question ( i'm sure this thread will pop up as a search result for those that use the mighty search feature [ btw, thank you SO MUCH FOR SEARCHING!! YOU ARE ONE OF A KIND! ] ). Run the following from bash prompt:
    php -i | grep php.ini

    You can also place the following line in a document in your web folder, if you intend on leaving it up, you may want to password protect the directory so others can't view the information.

    <?php phpinfo(); ?>

    Name the file anythingyouwant.php load it up in your browser and look at the path it shows to the php.ini file.
     
Loading...

Share This Page