File manager - increase upload file size?
File manager - increase upload file size?
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?
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
Code: Select all
service php<PHP-VERSION>-fpm restart
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: File manager - increase upload file size?
Re: File manager - increase upload file size?
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?
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?
Re: File manager - increase upload file size?
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?
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?
The value of the specific user is not relevant in this case.I had a problem and although I defined a 500mb upload in the UI, it failed on about 120mb files or larger.
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
Code: Select all
php_admin_value[memory_limit] = 128M
php_admin_value[post_max_size] = 70M
php_admin_value[upload_max_filesize] = 64M
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************