Request entity too large

Discussion in 'Installation/Configuration' started by Jazzperson, Sep 15, 2007.

  1. Jazzperson

    Jazzperson New Member

    Hi!

    I have installed the Perfect Setup - Debian Sarge, everything works perfectly - but when i try to upload large files, i get an error: "Request entity too large".:(

    How do i solve this problem? :)

    Thanks //Jazzperson
     
  2. till

    till Super Moderator

    How do you upload the files? Large files should be always uploaded with FTP or sftp.
     
  3. Jazzperson

    Jazzperson New Member

    I know - but i can't even install new templates or components in Joomla! CMS.. It's a major problem..:(
     
  4. till

    till Super Moderator

    Ok, you mean you can connect with FTP with the user which is the administrator of the website but you can not upload any files inside the "web" folder?
     
  5. Jazzperson

    Jazzperson New Member

    Apparently it has something to do with "LimitRequestBody" in php.conf.. But where is php.conf located? :confused:
     
  6. till

    till Super Moderator

    If you upload with FTP, it has nothing to do with a PHP setting. Please try to answer my questions above, otherwise I can not help you if you dont tell me how you upload the files.
     
  7. Jazzperson

    Jazzperson New Member

    No - it has nothing to do with FTP - The component and template installer in Joomla!CMS is based on php upload..

    Request Entity Too Large
    The requested resource
    /inetservers/administrator/index2.php
    does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
    Apache/2.2.3 (Debian) PHP/5.2.0-8+etch7 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at www.xxxx.eu Port 80
     
    Last edited: Sep 16, 2007
  8. till

    till Super Moderator

    Ok, but then you should tell us in the first post that you have a problem with joomla and not with file uplodas in general or ISPConfig.

    Please have a look at the php.ini file (/etc/php5/apache/php.ini or a similar path) andset the limits for post requests and file uploads to a higher limit and restart apache.
     
  9. Jazzperson

    Jazzperson New Member

    Oh - of cause.. My fault..:) I'll try it..
     
  10. Jazzperson

    Jazzperson New Member

    Last edited: Sep 16, 2007
  11. falko

    falko Super Moderator

  12. Jazzperson

    Jazzperson New Member

    Thaks - I can't figure out exactly what to add.. Just LimitRequestBody 102400 to the first type of directives in apache2.conf? Is LimitRequestBody 0 = unlimited?
     
  13. till

    till Super Moderator

    yes.

    yes.
     
  14. Jazzperson

    Jazzperson New Member

    I've added it as you see, but it wont work..:( What do i do wrong?

    ### Section 1: Global Environment
    #
    # The directives in this section affect the overall operation of Apache,
    # such as the number of concurrent requests it can handle or where it
    # can find its configuration files.
    #

    #
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    #
    # NOTE! If you intend to place this on an NFS (or otherwise network)
    # mounted filesystem then please read the LockFile documentation (available
    # at <URL:http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile>);
    # you will save yourself a lot of trouble.
    #
    # Do NOT add a slash at the end of the directory path.
    #
    ServerRoot "/etc/apache2"

    #
    #LimitRequestBody
    #
    LimitRequestBody 0


    #
    # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
    #
    #<IfModule !mpm_winnt.c>
    #<IfModule !mpm_netware.c>
    LockFile /var/lock/apache2/accept.lock
    #</IfModule>
    #</IfModule>
     
  15. catdude

    catdude ISPConfig Developer

    Did you restart Apache after making the edit?
     
  16. Jazzperson

    Jazzperson New Member

    Yes, of cause i did..:)
     
  17. catdude

    catdude ISPConfig Developer

    Sorry, but I had to ask. I've been known to forget that step in the past :) Especially when things are getting hectic.
     
  18. falko

    falko Super Moderator

    Can you add the line to your vhost configuration within Apache (if you're using ISPConfig, put it in the Apache Directives field of that web site)?
     
  19. Jazzperson

    Jazzperson New Member

    Done - sadly there was no change..:( Maybe some of this information can help?: http://www.inetservers.eu/phpinfo.php
     
  20. Jazzperson

    Jazzperson New Member

    Hmm.. Maybe a downgrade of Apache is the solution - i actually think it went wrong, when i upgraded to 2.2.3.. How do i downgrade without interrupting with ISPconfig?
     

Share This Page