Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    131

    Default which php.ini to edit

    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
    Jeremi C Bergman

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    131
    Jeremi C Bergman

  3. #3
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    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.
    Beau Henderson

Similar Threads & Tags
Similar threads

  1. php.ini and override default php.ini
    By areh in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-24-2009, 06:45 PM
  2. I need to edit global_setting php.ini [moved]
    By thewishbone in forum New User Questions
    Replies: 13
    Last Post: 11-22-2005, 09:18 PM
  3. How to edit php.ini ?
    By cLub2Share in forum New User Questions
    Replies: 2
    Last Post: 10-06-2005, 02:40 PM
  4. Dont have permmision to edit php.ini
    By vishwas in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-14-2005, 01:03 AM
  5. Can't edit php.ini
    By Chew in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-16-2004, 11:46 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube