• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Cant send big files with POST

NaimKh

New Pleskian
Hi,

Im new to the forum and to plesk!

I have a problem with file upload. I changed php.ini files in /etc/php5/cgi and user and php.ini to work with big files. I changed accordingly max_filesize, post_max_size, memory_limit.
Also changed suhosin memory_limit and some other stuffs. I cant get files bigger than ~100MB to be sent through forms with post! Below is ok.
Is there any method to do this with plesk 11.5??
I saw docs on this particular topics with plesk 10 on internet but nothing for plesk 11.

Can anyone help me ?

Thx in advance!
 
Did you also change from the default:

Code:
max_execution_time
max_input_time

What errors do you get in the logs at the failing of uploads ..
 
Thanks for your fast answer!

Did you also change from the default:

Code:
max_execution_time
max_input_time

What errors do you get in the logs at the failing of uploads ..

max_execution_time = 3600
max_input_type = 300

both in local and global php ini (/etc/php5/cgi/php.ini and /var/www/vhosts/system/mydomain.be/etc/php.ini

And the very strange thing is that I dont see anything related with errors on the upload in the log file. :(
Only a browser info in chrome:
This webpage is not available

I checked log at "Manage Log Files of Website mydomain.be" in error.log

The only recurrent error i get is
Code:
[Tue Dec 10 11:04:44 2013] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
Non relevant in my opinion

100 Mb files are ok even with a slow upload connexion. It can last 30 min and even more and the upload is ok.
But bigger files, like 144MB and upper wont make it (on slow and fast connexions upload). Upload tries to start and breaks after something like 1min.

I don't know where to look at :/
 
No I'm running apache2. Everything is pretty much default. I used Plesk autoinstaller, on Debian 6 Squeeze.
 
Plesk comes with Nginx as a proxy to Apache! You may want to confirm this ...
However, a common problem to such is always been a low client_max_body_size if you were using Nginx and that would be increased with:

Code:
vim /etc/nginx/nginx.conf

Set to the following
Code:
http {
 [...]
 client_max_body_size 500m;
 [...]
}

Take note of the following parameters too ...(set them if you have not yet ..)

Code:
upload_max_filesize = 600M
post_max_size = 600M

Please do not forget to restart Apache + Nginx (if applicable)
 
Additional to abdi,

it would very helpful to get the phpinfo() output in short to get more in touch with your system details.
 
Solved

Thank you so much abdi!

In nginx log (/var/log/nginx/error.log) I had the following error:

Code:
2013/12/13 08:35:43 [error] 15121#0: *5 client intended to send too large body: 169096153 bytes, client: xx.xx.x.xxx, server: mydomain.be, request: "POST /testup/upload_file.php HTTP/1.1", host: "mydomain.be", referrer: "http://mydomain.be/testup/"

So accordingly to what you suggested I added this to /etc/nginx/nginx.conf :
Code:
client_max_body_size 500m;

It wasnt working alone so the other thing I did was changing /etc/nginx/plesk.conf.d/vhosts/mydomain.be.conf :
Code:
client_max_body_size 128m;
to
Code:
client_max_body_size 500m;

You saved my day :)

Thanks for the support (also to HMoellendorf87).
 
Thanks this helped me, i stumbled upon this post while searching for equivalent issue but:

/etc/nginx/plesk.conf.d/vhosts/mydomain.be.conf

It is stated at the beginig of the file:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

Is there anyway to make this permanent? i'm afraid i might lose my fix at next restart / update...

Thank you
 
Back
Top