Page 1 of 1

File manager - increase upload file size?

Posted: Mon 16. Mar 2020, 03:54
by prune
The default is 64M. I dont see any option for it in Admin > Settings > Configuration > Tools > File manager

I already changed User administration > Edit user > Php > upload_max_filesize to 150M but it doesnt affect File manager?

Im trying to upload a 140 mb zip.

Also where are the Php options like composer that you usually can un/check in Cpanel?

Thanks!

Re: File manager - increase upload file size?

Posted: Mon 16. Mar 2020, 11:02
by Alexander
Hello,

have a look into the following file, which is responsible for the KeyHelp UI:

Code: Select all

/etc/php/<PHP-VERSION>/fpm/pool.d/keyhelp.conf
After modifying this file, restart the PHP-FPM:

Code: Select all

service php<PHP-VERSION>-fpm restart

Re: File manager - increase upload file size?

Posted: Tue 24. Mar 2020, 05:16
by prune
Thank you I will check this out. Hopefully in future this can be tweaked within admin panel.

Re: File manager - increase upload file size?

Posted: Fri 10. Apr 2020, 01:55
by prune
I already increase it to 150M but now I get this from Cloudflare. My KH is behind cloudflare

413 Request Entity Too Large

Im upload a 138 mb zip.

php_admin_value[memory_limit] = 128M
php_admin_value[post_max_size] = 150M
php_admin_value[upload_max_filesize] = 150M
php_admin_value[max_execution_time] = 180
php_admin_value[max_input_vars] = 2000

Re: File manager - increase upload file size?

Posted: Fri 10. Apr 2020, 02:22
by prune
I grey cloud my domain in cloudflare and tried again but now I get

This page isn’t working right now
<mysite> can't currently handle this request.
HTTP ERROR 500

Maybe upload time out? How to increase time out? Modify this max_execution_time ?

Re: File manager - increase upload file size?

Posted: Sat 11. Apr 2020, 03:08
by prune
Im still geting http error 500, i already disabled the cloudflare cloud for my domain for over 12 hrs now.

Re: File manager - increase upload file size?

Posted: Sun 12. Apr 2020, 08:35
by prune
When creating new subdomain then creating a directory for it File manager then I upload a zip there, I get this error on 1st try

503 service unavailable
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

On 2nd try it is a success. Just a zip below 20 mb.

Re: File manager - increase upload file size?

Posted: Fri 24. Apr 2020, 16:40
by chaiavi
I had a problem and although I defined a 500mb upload in the UI, it failed on about 120mb files or larger.

Looking it the logs, it seems that uploading of a single large file in the File manager fails as it tries to allocate all memory for the file.

Which means that even if you can define a max upload of 500mb, in fact it means that 500mb can be uploaded only having multiple files, but for a single file the limit is the max memory for PHP or something like that


I am attaching my log:

Code: Select all

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 217773032 bytes) in /home/keyhelp/www/keyhelp/pages/user_file_manager.php on line 338

Re: File manager - increase upload file size?

Posted: Fri 24. Apr 2020, 16:59
by Alexander
I had a problem and although I defined a 500mb upload in the UI, it failed on about 120mb files or larger.
The value of the specific user is not relevant in this case.
When using the KeyHelp UI, only the settings of the "keyhelp" system user (the one running the KeyHelp UI) are relevant.

Its configuration can only be updated here:

Code: Select all

/etc/php/<PHP-VERSION>/fpm/pool.d/keyhelp.conf
Update these values as you wish.

Code: Select all

php_admin_value[memory_limit] = 128M
php_admin_value[post_max_size] = 70M
php_admin_value[upload_max_filesize] = 64M
Afterwards restart / reload the PHP-FPM daemon.

Re: File manager - increase upload file size?

Posted: Fri 24. Apr 2020, 17:17
by chaiavi
Thank you very much!