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.

Which php.ini

Discussion in 'General Discussion' started by Gareth C, Sep 29, 2003.

  1. Gareth C

    Gareth C Registered

    Joined:
    Jul 20, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    This is a simple question but which php.ini does cpanel use as its defaullt one, i would of hoped it was /etc/php.ini but making changes to that does not seem to make a difference.

    @linuxweb-1 [~]# locate php.ini
    /var/cpanel/version/php.ini-2
    /etc/php.ini
    /usr/lib/php.ini
    /usr/local/lib/php.ini
    /usr/local/lib/php.ini.new
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /home/cpins/installd/buildapache/php-4.3.2/php.ini-dist
    /home/cpins/installd/buildapache/php-4.3.2/php.ini-recommended
    /home/cpins/installd/buildapache/php-4.3.2/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.3.2/php.ini-dist
    /home/cpapachebuild/buildapache/php-4.3.2/php.ini-recommended
    /home/cpapachebuild/buildapache/php-4.3.2/pear/tests/php.ini
    @linuxweb-1 [~]#

    cPanel.net Support Ticket Number:
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    <?php
    phpinfo()
    ?>

    Put that in a file and save it as info.php. Then open it up in a browser. That will tell you the path for your php.ini file. Most likely it is in /usr/local/lib/

    cPanel.net Support Ticket Number:
     
  3. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    use this one:

    /usr/local/lib/php.ini

    cPanel.net Support Ticket Number:
     
  4. gleen

    gleen Member

    Joined:
    Nov 3, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Well this has been the cause of many problems. Why is it not using the standard /etc/php.ini?? Is it ok to delete that?
     
  5. danielaugustus

    danielaugustus Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Something interistin is that when you change de control panel php.ini... Located under 3rdparty subdir ... Calling a zend extension doesnt works. I foudn pretty interisting
     
Loading...

Share This Page