Educational ICT Virtualisation Specialist

Twitter LinkedIn E-mail
Precedence Technologies Ltd
Technology House, 36a Union Lane
Cambridge, CB4 1QB, United Kingdom
T: +44 (0)8456 446 800 / +44 (0)1223 359900
E: enquiries@precedence.co.uk
Webserver-PHPLimits

Jump To: Support > KB > NetManager > Webserver > PHPLimits

Adjusting PHP limits

To avoid overloading the server and to protect it from attack, there are various limits set within PHP. For example, there are limits on how much memory a script can consume (to stop a malicious script or server under attack for exhausting all memory) and how large uploaded files can be (to stop storage filling up).

To alter the limits, go to Webadmin and click through to Web server > Settings and look for the Limits section:

These settings are as follows:

PHP memory limit

This sets the memory_limit setting. The PHP documentation describes this as:

This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server.

A longer discussion of this setting can be found here.

PHP file upload limit

This sets the maximum individual file size that can be uploaded. This corresponds to the PHP setting upload_max_filesize. The setting for post_max_size is automatically set to 5.6x this value (based on base64 encoding increasing size by around a third and 4 files being uploaded at ones).

© Copyright Precedence Technologies 1999-2024
Page last modified on March 25, 2020, at 01:23 PM by sborrill