How to Upload big file Via FIle Manager in CWP
To upload a big file via File manager,We need to adjust the following PHP configuration directives.
upload_max_filesize: By default this value is 64MM. We need to increase it to the maximum size of 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.
On the command line , first backup the php.ini
cp /usr/local/cwp/php71/php.ini /usr/local/cwp/php71/php.ini.bak
Update the upload_max_filesize in /usr/local/cwp/php71/php.ini to the size you require.
locate upload_max_filesize,post_max_size and Memory_limit. change to your size and this case, am using 500MB
upload_max_filesize = 500MB
post_max_size = 550MB
Memory_limit = 1024MB
Save file and restart CWP
Very informative helpful post. This problem is a regular issues. Thanks for your post.