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 users folder php.ini settings

Discussion in 'General Discussion' started by chrismfz, Dec 12, 2008.

  1. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    We have several disabled functions
    in the global php.ini under /usr/lib/.

    Like exec, shell_exec, phpinfo and so on....

    A specific account needs exec enabled. So, i removed it from
    the global php.ini so I can work...

    BUT, is there a way -for securiry reasons- to enable functions
    per account / home basis ?

    I am thinking something like eg: enable_function= exec
    or something similar ?

    Or functions like that (in the disable_function) can be modified
    only global ?
     
  2. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    No one?

    I assume I cant enable a function in a user's local php.ini ...
     
  3. dwykofka

    dwykofka Well-Known Member

    Joined:
    Aug 6, 2003
    Messages:
    394
    Likes Received:
    3
    Trophy Points:
    18
    yes you can toss a php.ini in the users folder and make your changes to it.
     
  4. gkgcpanel

    gkgcpanel Well-Known Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Yes, but how do you prevent them from changing the default settings?

    Example, we have the max_upload_limit set to 2M (default from cPanel), and we have a user that put his own php.ini file in his home directory and changed the max_upload_limit to 1000M.

    He's now uploading ISO's via a PHP script (movies etc...)

    Not good.. How can we stop them from making those changes and over-writing the 2M limit on the default???
     
Loading...

Share This Page