PHP resource limits refer to the maximum amount of resources PHP can use to perform various operations. For example, if you have content management system (CMS) that allows you to upload media, PHP may have set a certain limit on the size of file that you can upload. Similarly, when working with MySQL databases in phpmyadmin, your PHP limit on memory may restrict you from completing a particularly memory-intensive operation.
In Webmin, you can manage PHP resource limits in a graphical interface rather than manually editing your php.ini file. Simply follow these instructions:
- Login to Webmin and go to “PHP Configuration” in the “Others” section
- Click “Manage” next to your global PHP configuration file (if you wanted to edit another, use the box below to enter the full path or find it on the server)
- Click the “Resource Limits” button
- Set the memory limits (in megabytes) for any of the options you want
- Click “Save”
The Webmin interface allows you to set 5 resource limits:
- Maximum memory allocation
- Maximum file upload size
- Maximum input parsing time
- Maximum HTTP POST size
- Maximum execution time
For more information about this module, consult the Webmin documentation.