Jump to content

Server Problem Uploading in IP.Downloads


Recommended Posts

Posted

Good Server: I had a macmini colocation server which gave me no problems uploading files to ip.Downloads of any size.


Bad Server: I switch to 1&1 Dynamic Cloud Server (latest CentOS 64bit with Plesk 11) and every upload fails even few MB. I was told it may be a problem with tmp folder or some partitioning issue. But no one has been able to help me solve. Anyone have insight?

Posted

It really depends heavily on what the error message is.

Have a look in your error file (either apache or error_log file in the root directory) and see if it shines any light on the situation.

However after saying that I have had issue's with uploading to IPD that returned an error 500.

After lots of hair pulling, searching and researching I found that in my instance it was a simple issue with mod_fcgid and adding FcgidMaxRequestLen and a higher number to the includes file solved the issue.

I have found for me that 256MB was enough, we dont upload anything bigger on our site.



<IfModule mod_fcgid.c>

    FcgidMaxRequestLen 268435456

</IfModule>



I must say in my instance I am using FCGI as the PHP handler, however it maybe different in your instance.

Posted

i've actually done over GB sized upload after fixing the fcgid figures, but prior to that it was hit or miss on working.
not using fcgid now though so take it with grain of salt.

Posted

Even after changing my PHP settings in Plesk (max input, size, post , execution, and maxupload, This is what I'm getting in the log:




[Tue Oct 09 09:18:26 2012] [warn] [client 208.125.29.216] mod_fcgid: HTTP request length 16778232 (so far) exceeds MaxRequestLen (16777216)

[Tue Oct 09 09:39:03 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?

[Tue Oct 09 09:39:03 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?

[Tue Oct 09 09:41:39 2012] [warn] [client 208.125.29.216] mod_fcgid: stderr: PHP Warning: POST Content-Length of 14898201 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

[Tue Oct 09 09:42:49 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?

[Tue Oct 09 09:42:50 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?

[Tue Oct 09 09:44:29 2012] [warn] [client 208.125.29.216] mod_fcgid: stderr: PHP Warning: POST Content-Length of 14898201 bytes exceeds the limit of 8388608 bytes in Unknown on line 0


Posted

You need to increase the FcgidMaxRequestLen length more than 16M

I am sure that you can upload just under 16M, but anything past that you will get the error 500

Find and change

FcgidMaxRequestLen 1073741824



in your /etc/apache2/conf.d/fcgid.conf

That will give you a limit of 1GB

Restart Apache and you should not see the 500 error again (unless you want to upload more than 1GB) :thumbsup:

Posted

I added the line as follows:


</IfModule>

FcgidIPCDir /var/run/mod_fcgid/sock

FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

FcgidIdleTimeout 4000

FcgidProcessLifeTime 3000

FcgidMaxProcesses 20

FcgidMaxProcessesPerClass 8

FcgidMinProcessesPerClass 0

FcgidConnectTimeout 3000

FcgidIOTimeout 4500

FcgidInitialEnv RAILS_ENV production

FcgidIdleScanInterval 10

FcgidMaxRequestLen 8268435456

</IfModule>

But I get this still:


[Tue Oct 09 12:04:55 2012] [warn] [client 208.125.29.216] mod_fcgid: HTTP request length 16778064 (so far) exceeds MaxRequestLen (16777216)

Posted

I found this KB entry: http://kb.parallels.com/114842

It suggests the issue was fixed back in version 10.4.4.

However the file name of the file is different for the work around, suggesting to:


1. Change the value of MaxRequestLen in /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
2. Reconfigure domains:

/usr/local/psa/admin/bin/httpdmng --reconfigure-all



I hope this is the fix that helps your issue.

Posted

That Seems to work! Only thing is I noticed it changed back to to the old value today. I switched changed it again and will see if it stays. Thank you for pointing out that workaround.

  • 2 weeks later...
Posted

This has worked to some extent. Still having a problem with files >200MB. I'll do some more research to see if there are other limitations set in either PHP, FCGI, or Apache itself.

  • 7 months later...
Posted

I have the same issue and my panel version is 10.4.4 Update #50

My hosting provider recommends against increasing MaxRequestLen due to denial of service security risks.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...