• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question about custom PHP Configuration

nonname

New Pleskian
Hello,

is there a way to define a maximum limit for certain php settings like max_execution_time or upload_size, if I give my customers the right to edit their php configurations.
 
Do you mean, you would like to set these limits and not let your users override them?
 
Hello,

not exactly. I would like to give the user the possibility to change these settings, but limit it.
For example I want to allow my customers to change the memory_limit, but I don't want them to be able to change it to lets say 2048MB.

My question is, is there a way I can allow the user to change it but only within a certain range (for example between 32MB and 256MB).
 
I don't think there is. But even if there were note that for the examples you gave, max_execution_time and memory_limit can be set in ANY PHP script with an ini_set() function call, and upload_max_size can be set in an .htaccess file in the same folder as the script.
 
Yes and no. That applies only if you run mod_php.
Therefore you would only use the custom php configuration possibility, if you don't run mod_php.
 
Back
Top