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.

allow users to use their own custome php.ini file?

Discussion in 'General Discussion' started by SetLar8, May 27, 2007.

  1. SetLar8

    SetLar8 Well-Known Member

    Joined:
    Mar 5, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    A user can sometimes have a php.ini file located with their php files that allow them to change some of the php settings for their php files such as "display_errors = On".

    As i believe if Apache/PHP is compiled in CGI mode + phpSuexec then this should enable this feature.

    My server is compiled in this mode at the moment but my server will not allow this feature.

    Is there something else i have to enable or include i the php files to allow this file?

    Thanks.
     
    #1 SetLar8, May 27, 2007
    Last edited: May 27, 2007
  2. DeepakW

    DeepakW Active Member

    Joined:
    Nov 13, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    No there is no other setting for this, you just need to create a php.ini file under public_html directory with file permission 644 and ownership of the user of that account . You can check
    the PHP values through phpinfo



    Regards,
    Deepak
     
  3. SetLar8

    SetLar8 Well-Known Member

    Joined:
    Mar 5, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Unfortunatly that hasnt worked, i have included an image of the phpinfo for my server:

    [​IMG]

    Are there any setting in there that will stop the use of a local php.ini file such as zend being installed?

    Thanks.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I know in many versions of PHP 5, the bug of users being able to specify their own php.ini file in their home directory has been fixed.

    Note a known bug in php.ini is that it will say it's using a local php.ini when in fact it is not.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    It's Zend that is preventing it.
     
  6. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page