Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member Silent Ninja's Avatar
    Join Date
    Apr 2006
    Location
    Buenos Aires, Argentina
    Posts
    173

    Default Local PHP.ini without overriding global

    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. #2
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    AFAIK this isnt possible, as php can only read one config file for its options

  3. #3
    Member Silent Ninja's Avatar
    Join Date
    Apr 2006
    Location
    Buenos Aires, Argentina
    Posts
    173

    Default

    Quote Originally Posted by nickp666 View Post
    AFAIK this isnt possible, as php can only read one config file for its options
    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.

Similar Threads & Tags
Similar threads

  1. PHP: Error parsing /usr/local/lib/php.ini on line 1136
    By desiguru in forum New User Questions
    Replies: 1
    Last Post: 12-08-2009, 07:11 PM
  2. SuPHP, prevent overriding PHP ini but still allow them to set options?
    By celliott in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-15-2009, 06:50 AM
  3. How to disallow php.ini overriding?
    By Top Line in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-09-2009, 04:01 PM
  4. how do you usesuphp and prevent overriding system php.ini?
    By Kaydiddle in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-06-2009, 04:35 PM
  5. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube