Submitted by xps on Sun, 07/12/2009 - 06:15
When i allow a virtual admin to edit things like php values, he can override the global limits i have set. For example i limited PHP memory to 32 MB but allowed him to change php settings for his domain - hes than able to set more than 32 MB als a memory limit. It would be great if he could change the memory limit UP TO the global limit i have set. so he can give 8mb limit to his domais or 16 mb but never more than 32MB.
Thanks
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sun, 07/12/2009 - 11:45 Comment #1
I assume you are setting the global limits in /etc/php.ini ? If so, you can in Virtualmin set limits that will apply to all processes the user runs, including PHP. This can be done at Administration Options -> Resource Limits.
Alternately, you can prevent users from editing their own php.ini files, at System Settings -> Server Templates -> Default Settings -> Administrator's Webmin modules , by changing "PHP Configuration" to "No".
Submitted by xps on Sun, 07/12/2009 - 12:04 Comment #2
Im pretty sure i have set this to 32MB - i know i came across this setting. Unfortunattly i can t find it any more :) But i think this setting is overwriten if a user is able to change his php settings - thats what i said - i think the limit is not honored.
Submitted by JamieCameron on Sun, 07/12/2009 - 12:07 Comment #3
If you have the memory resource limit set to 32M, the PHP setting won't actually override it. The PHP limit is enforced only by PHP itself, while the one on the Resource Limits page is enforced by the operating system.
Submitted by xps on Sun, 07/12/2009 - 13:09 Comment #4
Ok - that means the phpinfo shows 64? where the os limits kill everything beyond 32MB?
Submitted by JamieCameron on Sun, 07/12/2009 - 14:07 Comment #5
Yes, that is correct.
Submitted by xps on Mon, 07/13/2009 - 02:37 Comment #6
Ok - thanks - seems a bit confusing to end users when they dont know they have a set limit and their PHP.ini set limit doesnt work :)
But i think its acceptable.
Thanks and solved i guess
Submitted by JamieCameron on Mon, 07/13/2009 - 12:19 Comment #7
The Resource Limits setting is actually more wide-ranging that PHP, as it applies even to commands users run when they SSH in, and to CGI scripts.. that's why it is separate.
Submitted by Issues on Mon, 07/27/2009 - 14:18 Comment #8
Automatically closed -- issue fixed for 2 weeks with no activity.