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.

php.ini is where

Discussion in 'General Discussion' started by Storagedump.com, Jun 30, 2005.

  1. Storagedump.com

    Joined:
    Jun 29, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    where is php.ini located with the default cpanel install.
     
  2. jacks

    jacks Active Member

    Joined:
    Nov 15, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    You can find it by issuing this command:
    locate php.ini
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Which will find a number of results and from which you can find the right one through either a process of trial and error or searching the forum.
     
  4. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    best is to create a phpino(); file and access it via web. it shows the correct location of php.ini

    locate can give you a lot of options.
     
  5. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    The local path to php.ini is: /usr/local/lib/php.ini

    If you have installed ZendOptimizer, this program will create its own version and save old copy of /usr/local/lib/php.ini as: and php.ini-zend_optimizer.bak

    In addition, ZendOptimizer will save another copy of the new php.ini under the name: php.ini.new

    Now, to avoid confusion, ZendOptimizer will symlink its own version of php.ini
    /usr/local/lib/php.ini -> /usr/local/Zend/etc/php.ini
    /usr/lib/php.ini -> ../local/lib/php.ini

    if wish to modify php.ini, edit: /usr/local/lib/php.ini
    Which is symlinked to /usr/local/Zend/etc/php.ini

    Hope this helps!
     
  6. Storagedump.com

    Joined:
    Jun 29, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    thanks all of you :)
     
  7. ebinfo

    ebinfo Active Member

    Joined:
    Oct 5, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    That does not help me here.

    I compare my phpinfo() extensions , i got GD, DOMXML and so forth enabled. good.

    If i go edit that file pointed by phpinfo() to add modules, such as DBG to be able to remote debug my scripts, the said extensions are flagged as commented, with a ; on the line first chatacter.

    Leads me to think that's not the php.ini file being used.

    If it helps, i used cPanel's update feature to update to php 4.4.0. So maybe they are using a diff php.ini file that is lurcking somewhere, and that's the one i need to get my hands on.
     
Loading...

Share This Page