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!

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

    netnameus Well-Known Member

    Joined:
    Mar 7, 2004
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    166
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    318
    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.
     
    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