Cannot upload files larger then 512kb. ISPConfig setting? Apache setting? Grrrrrrr....

Discussion in 'Installation/Configuration' started by MarsWarrior, Apr 10, 2015.

  1. MarsWarrior

    MarsWarrior New Member

    So I'm already searching for this problem for the last couple of hours. It's a bit frustrating :mad::mad::mad:

    I can find this problem on the internet: It should be related to the LimitRequestBody setting of Apache:
    "The apache webserver has a LimitRequestBody configuration directive that restricts the size of all POST data regardless of the web scripting language in use. Some RPM installations sets limit request body to 512Kb. You will need to change this to a larger value or remove the entry altogether."

    So even if I set (and is visible in WordPress in the media upload library page) the php and post upload sizes to some large value (50MB/100MB), I still can't upload any image, theme or full site if that file is larger than 512KB.

    FcgidMaxRequestLen is set to 52428800 (500MB) in my vhost file (probably set by ISPConfig)
    I did try to find this LimitRequestBody directive in some conf file, but can't find any occurrence;
    I did try to add the directive for the website in ISPConfig to a large value, or even 0 (no limit), but nothing solves this problem.
    After each change I did restart apache2!
    Using FTP to upload images/themes of >100MB gives me no problem whatsoever.

    I'm using Ubuntu Server 14.10 which is installed according to the Perfect Server setup for Ubuntu 14.10...

    I hope someone has the solution to this highly annoying problem :rolleyes:

    BTW: My WAMP configurations don't have this limitation, there I only had to set the max post/upload sizes and everything was ok, so it seems some Linux/Ubuntu/ISPConfig specific problem to me...
     
    Last edited: Apr 10, 2015
  2. MarsWarrior

    MarsWarrior New Member

    Well, still nothing :mad:

    I checked about all the things I could find on the internet, but alas no solutions yet.

    The only thing I can see is if I upload multiple files (all larger than 512kb), I get the following error for each upload:
    Code:
    [Sat Apr 11 17:10:41.753856 2015] [fcgid:warn] [pid 12564] (70007)The timeout specified has expired: [client 10.10.2.254:55718] mod_fcgid: can't get data from http client, referer: http://www.example.com/wordpress/wp-admin/upload.php
    [Sat Apr 11 17:11:00.654578 2015] [fcgid:warn] [pid 12313] (70007)The timeout specified has expired: [client 10.10.2.254:55724] mod_fcgid: can't get data from http client, referer: http://www.example.com/wordpress/wp-admin/upload.pp
    [Sat Apr 11 17:11:19.752898 2015] [fcgid:warn] [pid 12566] (70007)The timeout specified has expired: [client 10.10.2.254:55726] mod_fcgid: can't get data from http client, referer: http://www.example.com/wordpress/wp-admin/upload.pp
    [Sat Apr 11 17:11:38.949434 2015] [fcgid:warn] [pid 12570] (70007)The timeout specified has expired: [client 10.10.2.254:55727] mod_fcgid: can't get data from http client, referer: http://www.example.com/wordpress/wp-admin/upload.pp
    [Sat Apr 11 17:11:57.966270 2015] [fcgid:warn] [pid 12562] (70007)The timeout specified has expired: [client 10.10.2.254:55729] mod_fcgid: can't get data from http client, referer: http://www.example.com/wordpress/wp-admin/upload.php
    
    The messages in the errorlog are exactly 19 seconds apart.
    The WordPress upload starts, then simply stalls and after 19 seconds gives me an HTTP error.

    The vhost file (filled by ISPConfig) contains the following settings:
    Code:
            <IfModule mod_fcgid.c>
                    FcgidIdleTimeout 300
                    FcgidProcessLifeTime 3600
                    # FcgidMaxProcesses 1000
                    FcgidMaxRequestsPerProcess 5000
                    FcgidMinProcessesPerClass 0
                    FcgidMaxProcessesPerClass 10
                    FcgidConnectTimeout 3
                    FcgidIOTimeout 600
                    FcgidBusyTimeout 3600
                    FcgidMaxRequestLen 1073741824
            </IfModule>
    
    None of these settings get anywhere around the 19-20 second mark o_O

    Update1:
    My problem seems related to this time out problem caused by a router.
    I checked with other local WAMP servers that just work, but are accessed through the LAN. I opened up a port in the fibre router, and pointed this port to the local server, and :mad: uploads are not working anymore: HTTP error !!
    So I will now check MTU sizes as the above problem was solved by changing MTU from 1500 to 1400...

    Update2:
    As I was unable to access a website hosted on www.example.com on my LAN (wordpress kept me redirecting to www.example.com), I created a local website (10.10.x.y) and installed wordpress on it.
    And YES, uploading images simply works! :D:D:D:D:D
    So it definitely seems some problem related to my router (switches / WIFI are used in both cases). However, changing settings of my fibre router isn't possible. These kind of changes seem to be blocked by the ISP :eek:

    So, currently I see no options to get my local webserver 100% functional: websites do work, but uploading anything larger than 512KB isn't possible and must be done through FTP. Bummer!!!

    Update3 @2015.04.13:
    The problem is my router, which seems to have problems handling NAT loopbacks.
    As a workaround I entered my domain names and local IP addresses in my hosts file and everything is working now! Stupid problem of course. The previous version of the router didn't even support NAT loopbacks, and the current version still has problems...

    But it works now...
     
    Last edited: Apr 13, 2015

Share This Page