Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 22 of 22
  1. #16
    Member
    Join Date
    Jul 2011
    Posts
    6

    Default Re: Ability for users to manually specify php.ini per accont

    For us, it's certain settings in suhosin:
    php_value suhosin.post.max_vars
    php_value suhosin.request.max_vars

    Setting these values in .htaccess seem not to work. (forgive me if this post should be on a different forum, this was an issue for which we were looking to enable individual php.ini files & when I came across this thread...)

  2. #17
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    387
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Ability for users to manually specify php.ini per accont

    Here are some that could be usefull depending on what version of PHP is installed :

    Maximum file upload limit,
    Maximum execution time,
    Maximum input time,
    Maximum memory
    Show errors
    Magic quotes
    allow mail
    Safe mode
    max file uploads
    Post max size
    Request max size
    maillog
    disabled functions
    allow url fopen

    There may be others that I have forgotton and some will not be wanted by all hosts.

    We use CloudLinux that limits memory and CPU per account at the moment and soon I/O limits. Thanks to these limitations we can have limits per account instead of per PHP process. Some users want PHP to limit itself so all their account limits are not used up, others might want to set high memory limits and max execution time others will not want these.

    At the moment we allow 2Gb of memory per account. We limit PHP memory to 512 Mb, we could limit it to 2Gb but this would not be good for all customers.

    The maximum upload file size would be good so customers who have a 120Gb account can allow 2Gb uploads but those who have a 10Gb account can limit file upload to a sensible size.

    Some customers would like to disable functions that they do not need (like mail or uploads) as this can help prevent a hacked account from sending e-mail.

    The php.ini file editor should be intelligent and for instance increase the max post size and suhosin max request size to the upload size
    Last edited by monarobase; 01-25-2012 at 09:47 AM.

  3. #18
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Ability for users to manually specify php.ini per accont

    Quote Originally Posted by monarobase View Post
    I believe there is already a similar feature request. ...
    There is, located here:
    php.ini end user config

  4. #19
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Ability for users to manually specify php.ini per accont

    Quote Originally Posted by Infopro View Post
    There is, located here:
    php.ini end user config
    Agreed - I have merged these identical threads.

  5. #20
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Ability for users to manually specify php.ini per accont

    Quote Originally Posted by monarobase View Post
    Here are some that could be usefull depending on what version of PHP is installed :

    Maximum file upload limit,
    Maximum execution time,
    Maximum input time,
    Maximum memory
    Show errors
    Magic quotes
    allow mail
    Safe mode
    max file uploads
    Post max size
    Request max size
    maillog
    disabled functions
    allow url fopen
    These seem like settings a sysadmin would best set, not an individual cPanel user. What's the point of letting a user determine for themselves, for example, what functions they are not allowed to use?

  6. #21
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Ability for users to manually specify php.ini per accont

    Quote Originally Posted by rojer_31 View Post
    php_value suhosin.post.max_vars
    php_value suhosin.request.max_vars
    Anyone have any additional PHP.ini settings they want cPanel users to edit for themselves?

    Also, does anyone on this thread feel this thread is now irrelevant due to our support for mod_ruid2?

  7. #22
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    387
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: php.ini end user config

    All the ones I suggested above would be able to be set by users.

    Maximum file upload limit,
    Maximum execution time,
    Maximum input time,
    Maximum memory
    Show errors
    Magic quotes
    allow mail
    Safe mode
    max file uploads
    Post max size
    Request max size
    maillog
    disabled functions
    allow url fopen

    I agree some hosts would not want users being able to play with them but others could want to allow their users to change these settings.

    We run cloudlinux and limit memory per user. We currently Allow 2GB per user avec 512MB per PHP script. However we could allow 2GB per script but then a users memory might get used completly… Some users would like to be able to set this limit de 1GB or maybe even 2GB for running a single script with very few or only one possible visitor.

    The same with the time execution limit. We currenly set this limit de 3 minutes but if a user want's to set it to 30 minutes we would like to allow him to do this (as his ressources are limited by CloudLinux).

    We could allow users to use their own php.ini files and edit them manually, but mot users don't understand about keeping the rest of the php.ini file. An interface to allow users to change these values, that the administrator could choose what values users could edit and maybe even set limits for the values… would be absolutly great !

Similar Threads & Tags
Similar threads

  1. php.ini for one user
    By NLCJ in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-27-2010, 10:59 PM
  2. (php run in what mode the following, the user can customize your php.ini)
    By liang3391 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-17-2010, 12:55 AM
  3. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  4. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  5. user php.ini ignored
    By EWD in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-15-2007, 04:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube