Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jonathan B Posted October 9, 2012 Posted October 9, 2012 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?
Aussie Cable Posted October 9, 2012 Posted October 9, 2012 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.
Dmacleo Posted October 9, 2012 Posted October 9, 2012 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.
Jonathan B Posted October 9, 2012 Author Posted October 9, 2012 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
Aussie Cable Posted October 9, 2012 Posted October 9, 2012 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 changeFcgidMaxRequestLen 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:
Jonathan B Posted October 9, 2012 Author Posted October 9, 2012 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)
Aussie Cable Posted October 9, 2012 Posted October 9, 2012 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.
Jonathan B Posted October 9, 2012 Author Posted October 9, 2012 I did step one, but have no idea how to do step two....I can't even download or edit the httpdmng file
Aussie Cable Posted October 9, 2012 Posted October 9, 2012 Step 2 should be done via CLI (Putty etc). Hope that helps.
Jonathan B Posted October 10, 2012 Author Posted October 10, 2012 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.
Aussie Cable Posted October 11, 2012 Posted October 11, 2012 Glad it seems to be working (yet to see if it keeps the new value, however)
Jonathan B Posted October 21, 2012 Author Posted October 21, 2012 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.
Quotes Posted June 13, 2013 Posted June 13, 2013 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.