Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Default Multiple php.ini files

    I have, count 'em, nine different php.ini files. phpinfo() says that my php.ini path is '/usr/local/lib/php.ini' so that's what I've been editing for serverwide configuration changes, but I would really like to know why there there so many php configuration files.

    Any clues? Thanks.

    # locate php.ini
    /home/virtfs/vpsuser/usr/local/lib/php.ini
    /home/virtfs/vpsuser/usr/lib/php.ini
    /usr/local/lib/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/lib/php.ini
    /scripts/php.ini
    /etc/php.ini
    /var/cpanel/version/php.ini-2

  2. #2
    Member
    Join Date
    Feb 2006
    Posts
    11

    Default

    Hello justahandle,

    Real php.ini file is the file when you execute the command

    php -i | grep ini

    Most probably it is /usr/local/lib/php.ini

    if you have zend optimizer installed it will be /usr/local/Zend/etc/php.ini

    php.ini files in virtfs may be symbolic links to actual php.ini

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, 08:55 AM
  2. Allowing Custom PHP.INI files
    By martynh in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-13-2009, 02:18 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, 10:58 AM
  4. Custom php.ini files?
    By ehuk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-12-2008, 02:15 PM
  5. PHP5 and local php.ini files
    By webignition in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-18-2007, 11:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube