View Full Version : Request entity too large
Jazzperson
15th September 2007, 18:08
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
till
16th September 2007, 20:45
How do you upload the files? Large files should be always uploaded with FTP or sftp.
Jazzperson
16th September 2007, 20:49
I know - but i can't even install new templates or components in Joomla! CMS.. It's a major problem..:(
till
16th September 2007, 20:50
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?
Jazzperson
16th September 2007, 20:59
Apparently it has something to do with "LimitRequestBody" in php.conf.. But where is php.conf located? :confused:
till
16th September 2007, 21:01
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.
Jazzperson
16th September 2007, 21:06
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
till
16th September 2007, 21:10
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.
Jazzperson
16th September 2007, 21:12
Oh - of cause.. My fault..:) I'll try it..
Jazzperson
16th September 2007, 21:20
post_max_size = 8M
upload_max_filesize = 2M
File size = 812 kb
No change..:(
One with the same problem: http://forum.mamboserver.com/showthread.php?t=19892 - I need to change "LimitRequestBody", but i don't know where..
falko
17th September 2007, 17:00
One with the same problem: http://forum.mamboserver.com/showthread.php?t=19892 - I need to change "LimitRequestBody", but i don't know where..
You must add this to your Apache configuration: http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody
Jazzperson
17th September 2007, 18:32
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?
till
18th September 2007, 09:36
Just LimitRequestBody 102400 to the first type of directives in apache2.conf?
yes.
Is LimitRequestBody 0 = unlimited?
yes.
Jazzperson
18th September 2007, 16:17
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>
catdude
18th September 2007, 16:57
I've added it as you see, but it wont work..:( What do i do wrong?
Did you restart Apache after making the edit?
Jazzperson
18th September 2007, 17:06
Did you restart Apache after making the edit?
Yes, of cause i did..:)
catdude
18th September 2007, 17:16
Yes, of cause i did..:)
Sorry, but I had to ask. I've been known to forget that step in the past :) Especially when things are getting hectic.
falko
19th September 2007, 15:53
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)?
Jazzperson
19th September 2007, 16:26
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)?
Done - sadly there was no change..:( Maybe some of this information can help?: http://www.inetservers.eu/phpinfo.php
Jazzperson
20th September 2007, 23:04
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?
Gimly
24th September 2007, 22:53
Hi all,
I've the same problem, is it possible that become to SuPHP or modsecurity2 ?
Thank you for your answer :)
Jazzperson
24th September 2007, 23:00
Interesting - I've also installed Modsecurity2..:)
Gimly
24th September 2007, 23:05
I've found the solution, it's ok when modsecurity for apache is install
1) vi /etc/apache2/apache2.conf
2) search the text " SecRequestBodyLimit "
3) increase the valor after it for incoming files (for exemple 15728640 //15MB)
4) save your file
5) restart apache
It work :)
Jazzperson
24th September 2007, 23:14
Thank you! :D Never thought about Modsecurity..:rolleyes:
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.