Results 1 to 3 of 3

Thread: SuPHP, prevent overriding PHP ini but still allow them to set options?

  1. #1
    Member celliott's Avatar
    Join Date
    Jan 2006
    Location
    United Kingdom
    Posts
    460

    Default SuPHP, prevent overriding PHP ini but still allow them to set options?

    Hi

    On a server running with SuPHP we want to stop people from setting their own crazy values for memory/upload limits. This is easily done through /opt/suphp/etc/suphp.conf

    However certain users need to be able to use things like register_globals. This needs to be specified in php.ini in their directory, but after doing the above what they add in their own php.ini has no effect.

    What is the workaround for this?

    Basically I dont want them to be able to modify some of the main parts of the PHP configuration e.g. memory_limit but they need to be able to add in some parts which used to be used in .htaccess

    Thanks

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    4

    Default

    Hello ,

    Please follow this thread :

    How to disallow php.ini overriding?

    Thank you

  3. #3
    Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    89

    Default

    Your reply in that thread is very well. But then how would users be able to setup their own register_global variables in their own php.ini? I don't believe they can. It is an all or nothing situation.

Similar Threads

  1. php.ini - options issue
    By bignerd in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 03-29-2011, 12:59 PM
  2. How can I protect php.ini with suPHP?
    By dansgalaxy in forum cPanel & WHM Discussions
    Replies: 11
    Last Post: 09-11-2009, 02:00 PM
  3. How to disallow php.ini overriding?
    By Top Line in forum cPanel & 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 & WHM Discussions
    Replies: 1
    Last Post: 04-06-2009, 04:35 PM
  5. Local PHP.ini without overriding global
    By Silent Ninja in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 11-14-2008, 11:05 AM