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.

Issues with ini_set.

Discussion in 'General Discussion' started by *Daniel, Nov 15, 2011.

  1. *Daniel

    *Daniel Member

    Joined:
    Mar 11, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    We are currently having an issue with 2 servers that we own. In our php.ini file we have "ini_set" in the list of disabled functions. Everything is good, noone can overwirte any of our settings and do any danage to the servers.

    We are getting reports that joomla and several other software refuse to work as that function is disabled.

    Now I know the fix for this issue is to take ini_set out of the list of disable function but that brings up a new issue. The new issue is that our users can then change any settings (including menory) and many other settings.

    Does anyone know how we can have ini_set open but only allow some php settings to be changed?

    Thanks
     
    #1 *Daniel, Nov 15, 2011
    Last edited: Nov 15, 2011
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest using suPHP as your default handler for PHP if you do not already do so. Once suPHP is enabled, you can follow the steps from the following thread to limit a user's ability to make PHP configuration changes:

    Methods to Increase Security on suPHP

    Thank you.
     
  3. *Daniel

    *Daniel Member

    Joined:
    Mar 11, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Thankyou for the link :) Now if we do allow users to have their own php.ini file, is there a list on what they can change and what they can't?

    Thankyou :)
     
Loading...

Share This Page