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.

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:
    198
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    AFAIK this isnt possible, as php can only read one config file for its options
     
  3. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
Loading...

Share This Page