Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    62
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Local users folder php.ini settings

    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. #2
    Member
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    62
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    No one?

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

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    388

    Default

    yes you can toss a php.ini in the users folder and make your changes to it.

  4. #4
    Member
    Join Date
    Jun 2007
    Posts
    150

    Default

    Quote Originally Posted by dwykofka View Post
    yes you can toss a php.ini in the users folder and make your changes to it.
    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???

Similar Threads & Tags
Similar threads

  1. PHP: Error parsing /usr/local/lib/php.ini on line 827
    By Nicarlo in forum New User Questions
    Replies: 9
    Last Post: 04-29-2011, 10:13 PM
  2. PHP: Error parsing /usr/local/lib/php.ini on line 782
    By BerbBrown in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-11-2011, 05:07 PM
  3. php.ini settings in users cpanel
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-16-2009, 07:17 AM
  4. 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
  5. PHP Ini settings in WHM
    By Getox in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-14-2004, 02:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube