• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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