max_read_to_memory_size to limit big files

Version 1.45

Feature
Finished

In some cases, DA uses a function to read the contents of a file to memory so it can be worked on. This change imposes an upper limit as to the max size that this file can be. The internal default is 500Meg (the function is usually mainly only used on small files) The value will be in bytes, so will look like: max_read_to_memory_size=524288000 If you want to change it, add the value to your directadmin.conf with a new size.

Interested to try DirectAdmin? Get a 30-day Free Trial!