Current time: 04-20-2024, 01:44 AM Hello There, Guest! (LoginRegister)


Post Reply 
Upload of files limited to approx 100KB
Author Message
mike548141 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #1
Upload of files limited to approx 100KB
Hi,

Basically I can't upload files, using HTTP, above a certain size. From my testing 127KB JPEG will upload but a 135KB JPEG will not.

I'm using a Wordpress 3.0 site in a vhost, no other issues with it. I try to upload Media into the Library using either the flash uploader or the browser loader with the same result.

It seems to upload about 90% of the file and then I get the following error message from Apache
Code:
<h1>Request entity too large!</h1>
<p>


    The POST
    method does not allow the data transmitted, or the data volume
    exceeds the capacity limit.

</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:webmaster@nova.net.nz">webmaster</a>.

</p>

<h2>Error 413</h2>
<address>
  <a href="/">www.nova.net.nz</a><br>
  
  <span>Sat Jul 10 03:37:06 2010<br>
  Apache</span>
</address>

The server config is
- openSuSE 11.1 x86_64
- PHP 5.2.12
- Apache 2.2
- ispCP 1.0.5
- Wordpress 3.0

PHP and CGI are enabled for the site in ispCP and there is plenty of free disk space (on the servers partitions and allowed in the domain disk space allocation in ispCP)

I have edited /etc/apache2/ispcp/<domain>.conf to add the following line. This line allows up to 2GB in the request but I've also tried 20480000 (20MB)
LimitRequestBody 2147483647

I have edited the values in /srv/www/fcgi/<domain>/php5/php.ini to be
- post_max_size = 20M
- upload_max_filesize = 20M
- max_input_time = 600
- memory_limit = 256M

After making these changes I have restarted apache and Wordpress now shows a maximum file upload size of 20MB (used to show 2MB).

I can't see any errors that look to be relevant when this issue occurs in
- /var/log/apache2/suexec.log
- /var/log/apache2/access_log
- /var/log/apache2/<domain>-combined.log
- /var/log/apache2/<domain>-traf.log
- /var/log/apache2/users/<domain>-access.log
- /var/log/apache2/users/<domain>-error.log

Possibly this is a general apache/php issue rather than a ispCP issue but these changes normally allow large file uploads in Wordpress

Many thanks for the help

MC
(This post was last modified: 07-10-2010 01:43 AM by mike548141.)
07-06-2010 12:51 AM
Find all posts by this user Quote this message in a reply
mike548141 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #2
RE: Upload of files limited to approx 100KB
Upate, confirmed its not a WP issues. It occurs in other PHP based web apps as well so either ispCP, Apache or PHP issue

MC
07-10-2010 01:45 AM
Find all posts by this user Quote this message in a reply
c0urier Offline
Junior Member
*

Posts: 89
Joined: Jun 2007
Reputation: 1
Post: #3
RE: Upload of files limited to approx 100KB
Debian 5.0 Lenny (Stable)
Apache 2.2.9-10
PHP 5.2.6
ispCP 1.0.5
Web app: Wordpress 3.0
Web app: Joomla 1.6

And I can NOT confirm that issue you are seeing.

I can say it's not related to ispCP, else many others incl. me would have seen this issue.
(This post was last modified: 07-10-2010 02:10 AM by c0urier.)
07-10-2010 02:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mike548141 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #4
RE: Upload of files limited to approx 100KB
Cool, any thoughts on what it could be? Similarly I have a Apache 2.2, PHP 5.2.12, WP 3.0 stack that is working

One thing I forgot to mention it uploads about 90-95% of the file and then fails when the file is 150KB or 4MB. It doesn't get to a magic number e.g. 132KB and then fail.

MC
07-10-2010 02:17 AM
Find all posts by this user Quote this message in a reply
c0urier Offline
Junior Member
*

Posts: 89
Joined: Jun 2007
Reputation: 1
Post: #5
RE: Upload of files limited to approx 100KB
I've crossed checked with my configuration file, and it seems like we have around the same settings.
I'll have to pass on this, since there is no error in the log files, I have no idea what could be causing this error.
07-10-2010 03:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mike548141 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #6
RE: Upload of files limited to approx 100KB
Perhaps the version of fastCGI?

I'm running

php5-fastcgi-5.2.12-0.1.1
perl-FastCGI-2.4.0-281.1
apache2-mod_fcgid-2.2-194.3
FastCGI-2.4.0-281.1
apache2-mod_fastcgi-2.4.2-39.32

MC
07-10-2010 04:33 AM
Find all posts by this user Quote this message in a reply
mike548141 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #7
RE: Upload of files limited to approx 100KB
Stood up a test server, same software and basic config as my ispCP server, but without ispCP installed and WP 3.0 uploads are fine. I say basic config because of course ispCP is a pretty significant config change for Apache etc...

Obviously it unique to some software or config I'm using (e.g. SuSE vs Debian perhaps) but I can't see how to trace the issue

MC
07-10-2010 09:56 PM
Find all posts by this user Quote this message in a reply
mike548141 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #8
RE: Upload of files limited to approx 100KB
Realised I never updated this thread. I found it was the security module mod_security2 that was limiting uploads

MC
12-08-2010 04:44 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #9
RE: Upload of files limited to approx 100KB
There is already a ticket open --> http://isp-control.net/ispcp/ticket/2514 with a solution.
Check your fcgid.conf for this here:
Code:
FcgidMaxRequestLen 2097152


Greez BeNe
(This post was last modified: 12-08-2010 10:21 PM by BeNe.)
12-08-2010 10:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tomdooley Offline
Development Team
*****
Dev Team

Posts: 332
Joined: Sep 2007
Reputation: 7
Post: #10
RE: Upload of files limited to approx 100KB
Beware that FcgidMaxRequestLen is only available since fcgid version 2.3.2. For any release below (e.g. debian lenny) please use the configuration parameter "MaxRequestLen" instead of "FcgidMaxRequestLen"
(This post was last modified: 12-09-2010 07:47 AM by tomdooley.)
12-09-2010 07:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)