Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    125
    Likes Received:
    1
    Trophy Points:
    68
    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:
    125
    Likes Received:
    1
    Trophy Points:
    68
    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:
    168
    yes you can toss a php.ini in the users folder and make your changes to it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. gkgcpanel

    gkgcpanel Well-Known Member

    Joined:
    Jun 6, 2007
    Messages:
    214
    Likes Received:
    0
    Trophy Points:
    166
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice