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!

Local PHP.ini without overriding global

Discussion in 'General Discussion' started by Silent Ninja, Nov 14, 2008.

  1. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Buenos Aires, Argentina
    I've noticed that if I use a php.ini local all Zend modules get cleaned and all options from the php.ini global return to a default.

    eg: if you enable register_globals, you'll also be enabling allow_url_fopen because it's on by default (i have it turned off).
    eg: in the same case above, you'll enabling all functions because of disable_functions by defualt being empty, so you can now use sockets, exec... etc.

    Is there a way to include the users php with the "Scan this dir for additional .ini files" option, that merges the configuration insted of overriding everything ?

    I'm using suphp and fastcgi, both php5 and php4 have the same effect.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    AFAIK this isnt possible, as php can only read one config file for its options
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Buenos Aires, Argentina
    I know about that, but there's not possible to attach one on the user home so it gets appended with the original one? some kind of include maybe.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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