akira9000
Basic Pleskian
So, I have a shared hosting account & 2 VPSs ( the 2 VPSs are with different providers so helps provide a constant ). One VPS is on CentOS 6.9 the other on CentOS 7.3. Both are Plesk Onyx 17.5.3. Plenty of RAM, plenty of disk space.
I have an uploader web app/script that works fine on the shared Linux host with some amends to the php.ini such as:
memory_limit = 2048
max_execution_time = 300
upload_max_filesize = 1024M
post_max_size = 1024M
On the shared Linux host I can upload files close to 1GB as you'd expect.
On both VPSs when an upload reaches approx 76MB I get an error - "Error Request Entity Too Large". Same every time irrespective how large the file is. This also seems to **** out at dead on 30secs worth of upload too. Coincidence?
I am pulling my hair out trying to get the uploader to function correctly on the VPSs. I have tried many different PHP versions, makes no difference. The only thing that works is disabling Nginx reverse proxy completely and serving the PHP as plain old CGI, which I really don't want to do. Not just because it's old, mainly because when things don't work I hate not knowing why.
I have tried going into /etc/nginx/nginx.conf and adding client_max_body_size 2000M; but I've got to admit I was flying a little blind as it's the first time I've been tempted to edit the nginx config so I'm not exactly fluent. It didn't resolve anything either. Are there any Apache/nginx defaults that would point to 76MB or 30 secs before I get the dreaded 413 "Error Request Entity Too
Large"?
Worth reiterating, same error on both VPSs, different Linux versions, 2 different providers so it's something default or standard at play here.
Any help greatly appreciated. This is the first major headache I've had for ages!
I have an uploader web app/script that works fine on the shared Linux host with some amends to the php.ini such as:
memory_limit = 2048
max_execution_time = 300
upload_max_filesize = 1024M
post_max_size = 1024M
On the shared Linux host I can upload files close to 1GB as you'd expect.
On both VPSs when an upload reaches approx 76MB I get an error - "Error Request Entity Too Large". Same every time irrespective how large the file is. This also seems to **** out at dead on 30secs worth of upload too. Coincidence?
I am pulling my hair out trying to get the uploader to function correctly on the VPSs. I have tried many different PHP versions, makes no difference. The only thing that works is disabling Nginx reverse proxy completely and serving the PHP as plain old CGI, which I really don't want to do. Not just because it's old, mainly because when things don't work I hate not knowing why.
I have tried going into /etc/nginx/nginx.conf and adding client_max_body_size 2000M; but I've got to admit I was flying a little blind as it's the first time I've been tempted to edit the nginx config so I'm not exactly fluent. It didn't resolve anything either. Are there any Apache/nginx defaults that would point to 76MB or 30 secs before I get the dreaded 413 "Error Request Entity Too
Large"?
Worth reiterating, same error on both VPSs, different Linux versions, 2 different providers so it's something default or standard at play here.
Any help greatly appreciated. This is the first major headache I've had for ages!