Page 1 of 1

file upload

PostPosted:07 Sep 2018 21:45
by Hitwalker
I get this

ERROR
File too large: phpBB_3.2.zip 5mb wtf
were can i change

Re: file upload

PostPosted:08 Sep 2018 07:46
by nguyenoanh
Hello.
You can change Upload Max Filesize in

VPSSIM menu ==> Change PHP Setting ==> Upload Max Filesize
=========================================================================
             VPSSIM - Manage VPS/Server by VPSSIM.COM (4.6.0.2)
=========================================================================
                         Change PHP Settings
=========================================================================
Max Execution Time: 120 | Max Input Time: 120 | Allow url fopen: On
=========================================================================
Display Errors: Off | Allow url include = Off | Memory Limit: 120M
=========================================================================
File Uploads = Off | Upload Max Filesize: 927M | Max Input Vars: 10000
=========================================================================
Write PHP Error Log: Off
=========================================================================
Disabled Functions:
-------------------------------------------------------------------------
All PHP functions are being enabled
=========================================================================
How to use: http://go.vpssim.vn/configphpini
=========================================================================

1) Max Execution Time		   8) On/Off PHP Error Log
2) Max Input Time		   9) Upload Max Filesize
3) On/Off Allow Url Fopen	  10) Max Input Vars
4) On/Off Display Errors	  11) Enable/Disable PHP Functions
5) Memory Limit			  12) Install / Remove Imagick
6) On/Off Allow Url Include	  13) Install / Remove Ioncube
7) On/Off File Upload		  14) Install / Remove Suhosin
Type in your choice (0-Exit): 9
=========================================================================
Use this function to config Upload Max Filesize & Post Max Size
-------------------------------------------------------------------------
Default Upload Max Filesize = Post Max Size: 120
-------------------------------------------------------------------------
Current Upload Max Filesize: 927
=========================================================================
Type in Upload Max Filesize [Enter]:

Re: file upload

PostPosted:08 Sep 2018 18:20
by Hitwalker
still no go have set it to Current Upload Max Filesize: 3801
and the file is on 5 mb must be something else

Re: file upload

PostPosted:08 Sep 2018 19:13
by nguyenoanh
You should edit /etc/nginx/nginx.conf and increase client_max_body_size in it.
Save then restart nginx.

Re: file upload

PostPosted:08 Sep 2018 20:32
by Hitwalker
i did edit it to client_max_body_size 103801m;
and still get
ERROR
File too large: phpBB_3.2.zip

Re: file upload

PostPosted:08 Sep 2018 20:44
by nguyenoanh
That means this error not from the php and nginx config, it came from your code.
You should to check your code again.