To upload a big file via File manager, we need to edit CWP PHP configuration.
First backup configuration file: /usr/local/cwp/php71/php.ini
cp /usr/local/cwp/php71/php.ini /usr/local/cwp/php71/php.ini.bak
Edit configuration file.
Locate upload_max_filesize, post_max_size and memory_limit.
Change to your size, in this case we are using 500MB, please note that post_max_size and memory_limit need to be greater than upload_max_filesize
Example for 500MB File:
upload_max_filesize = 500MB post_max_size = 550MB memory_limit = 1024MB max_input_time 300 max_execution_time 300
Save the file and restart cwp
More Detailed Info
upload_max_filesize: By default this value is 64MB. We need to increase it to the maximum size of a single file that we want to upload.
post_max_size: It defines the maximum size of POST data that PHP will accept. This value should be greater than upload_max_filesize.
memory_limit: This sets the amount of memory a PHP script is allowed to use during its execution. Set this to a value greater than post_max_size so that PHP script can load and process the uploaded file.
max_input_time: This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. Timing begins at the moment PHP is invoked at the server and ends when execution begins. This would include populating $_FILES superglobal.
max_execution_time: The time a script is allowed to run after its input has been parsed. This would include any processing of the file itself.