Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    May 2002
    Posts
    139

    Question 8 copies of php.ini Which one is used

    i did a locate php.ini and found 8 differnty php.ini files in differing locations - why is this so and which one(s) do i configure

    and why is there so many copies ??
    /home/cpapachebuild/buildapache/php-4.3.9/pear/tests/php.ini
    /home/cpphpbuild/php-4.3.8/pear/tests/php.ini
    /home/cpzendinstall/ZendOptimizer-2.5.3-linux-glibc21-i386/zui_files/php.ini
    /usr/lib/php.ini
    /usr/local/lib/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /usr/local/Zend/etc/php.ini

  2. #2
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    Several of them are linked together. The /usr/lib/php.ini and the one under Zend are the main two used for web pages. The Cpanel php.inis are what Cpanel uses for its internal functions.
    Kris
    NCServ, LLC.
    WebHosting - Dedicated Servers - Colocation
    sales@ncerv.com

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

    Default

    And to add, these:

    /home/cpapachebuild/buildapache/php-4.3.9/pear/tests/php.ini
    /home/cpphpbuild/php-4.3.8/pear/tests/php.ini
    /home/cpzendinstall/ZendOptimizer-2.5.3-linux-glibc21-i386/zui_files/php.ini

    Are used druing the build process of each of the pruducts above.

    cpapachebuild is used to store files for building apache and php.

    cpphpbuild is used to build php for cpanel / whm itself

    cpzendinstall is used, yep you guessed it for zend installation. These can be removed, however removeing the first 1 mabye 2, might cause you problems if loading a previous easyapache build. I really wouldn't worry about it to much, they're small text files.
    Beau Henderson

  4. #4
    Member
    Join Date
    May 2002
    Posts
    139

    Default

    no probs they can stay there i was just wonderig whitch one to configure some of my custom settings seem to have changed

    thanks all

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

    Default

    One of the following will give you the currently active php.ini for regular web page serving:
    php -i | grep php.ini

    Or place the following in a blank php document on a web accessable page:
    <? phpinfo(); ?>

    And it will show you the location near the top.
    Beau Henderson

  6. #6
    Member
    Join Date
    Jun 2004
    Location
    Southern California
    Posts
    255

    Cool follow-up question

    I noticed that using a blank phpinfo page shows the following location of the php.ini:

    /usr/local/lib/php.ini

    yet, when I use phpmyAdmin to produce this information from WHM it shows the php.ini file in the following location:

    /usr/local/cpanel/3rdparty/etc/php.ini

    Each phpinfo.php page I use for each client under their respective domain shows the first php.ini location. Yet WHM (phpmyadmin) shows the second.

    Am i safe to assume that the first php.ini mentioned above works for each of the clients. Is the second php file used in any way for serving of web pages.

    t9clkclnr

  7. #7
    Member
    Join Date
    Jun 2004
    Location
    Southern California
    Posts
    255

    Exclamation Another funny thing I noticed was

    in each of my phpinfo pages:

    http://mydomain.com/phpinfo.php
    reflects PHP version 4.3.9

    yet in my WHM:
    https://myWHMdomain.com/3rdparty/phpMyAdmin/phpinfo.php
    reflects PHP version 4.3.1

    much needed assistance.

  8. #8
    Member
    Join Date
    Sep 2004
    Location
    U.K.
    Posts
    265

    Default

    t9clkclnr the first link is your php build form the sites , phpmyadmin ( and all stuff in cpanel / whm ) use a seperate installation /scripts/makecpphp should upgrade that

  9. #9
    Member
    Join Date
    Jun 2004
    Location
    Southern California
    Posts
    255

    Talking Danka.... update worked.

    thanks fusioncroc

    update got both upto speed.

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 09:55 AM
  2. 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
  3. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 11:58 AM
  4. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 12:34 PM
  5. Replies: 1
    Last Post: 06-20-2003, 02:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube