Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: stephenhare on August 02, 2019, 12:39:48 AM
-
Hi,
I have just updated today 2 August 2019. I cannot say if it this latest update that has caused the following problem or not.
It is not possible to upload large files to the server using the Filemanager. I have tried logged in as Admin with root access. It is not possible to upload files (around 80MB), using the drag and drop interface of directory selection. Does not work using the Basic File manager either. (Wanting to upload cPanel migration files).
It is also not possible to upload files when logged in as an CWP user.
I have tried with small files (approx 30kB) and this works. The problem seems to be with larger files.
-
Increase your php limits.
-
I have increased max_post_size and upload_max_filesize both to 512M
I have checked that this is reflected in PHP Settings >> PHP Info and it is, but still the upload fails for big files (e.g. 70MB).
It would be logical that that the FileManager might have a different php.ini file with large file sizes by default, so that it is not restrained by normal file size limits that might apply elsewhere. I think this might be what is happening and so adjusting the normal php.ini is not resolving the issue. I just don't know where this alternative php.ini file is.
-
Did you find any solution for this?
I am also facing the same issue.
-
edit
/usr/local/cwp/php71/php.ini
post_max_size = 512M
upload_max_filesize = 512M
memory_limit = 256M
edit
/usr/local/cwpsrv/conf/cwpsrv.conf
client_max_body_size 512M
service cwp-phpfpm restart
service cwpsrv restart
-
Thank you it worked like a charm. Life is so much easier now :)
client_max_body_size 512M was the main issue in my case
edit
/usr/local/cwp/php71/php.ini
post_max_size = 512M
upload_max_filesize = 512M
memory_limit = 256M
edit
/usr/local/cwpsrv/conf/cwpsrv.conf
:-\
service cwp-phpfpm restart
service cwpsrv restart
-
try this tutorial
https://www.mysterydata.com/increase-import-upload-limit-for-phpmyadmin-and-file-manager-in-cwp/