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!

Multiple php.ini files

Discussion in 'General Discussion' started by justahandle, Dec 28, 2006.

  1. justahandle

    justahandle Registered

    Joined:
    Oct 17, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    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. Henric

    Henric Member

    Joined:
    Feb 27, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    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
     
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