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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Correct PNP.INI File

Discussion in 'General Discussion' started by Guigows, May 8, 2006.

  1. Guigows

    Guigows Active Member

    Joined:
    Nov 16, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    151
    dear sirs,

    In my server there are a lot of php.ini files, what is the correct one??:eek:

    root@server1 [~]# locate php.ini
    /scripts/php.ini
    /usr/lib/php.ini
    /usr/src/installd/buildapache/php-4.3.11/php.ini-dist
    /usr/src/installd/buildapache/php-4.3.11/php.ini-recommended
    /usr/src/installd/buildapache/php-4.3.11/pear/tests/php.ini
    /usr/local/lib/php.ini
    /usr/local/lib/php.ini.new
    /usr/local/cpanel/3rdparty/lib/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /var/cpanel/version/php.ini-2


    Thank you!
     
  2. panayot

    panayot Well-Known Member

    Joined:
    Nov 18, 2004
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    166
    check the output of phpinfo()
     
  3. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Kelowna, BC.
    ^^^ what he said.

    Typically its /usr/local/lib/php.ini. If you have Zend installed, it'll attempt to symlink the old php.ini to /usr/local/Zend/etc/php.ini.

    I would suggest you symlink /etc/php.ini to the correct php.ini to make life easier.

    Also, don't touch the ones in /usr/local/cpanel unless you absolutely have to.
     
  4. Compubuster

    Compubuster Well-Known Member

    Joined:
    Mar 31, 2004
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    156
    cPanel Access Level:
    Root Administrator
    root@server[~]# php -i | grep php.ini
    Configuration File (php.ini) Path => /usr/local/Zend/etc/php.ini
     
Loading...

Share This Page