ispCP - Board - Support
Upload of files limited to approx 100KB - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Upload of files limited to approx 100KB (/thread-11122.html)

Pages: 1 2


Upload of files limited to approx 100KB - mike548141 - 07-06-2010 12:51 AM

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


RE: Upload of files limited to approx 100KB - mike548141 - 07-10-2010 01:45 AM

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


RE: Upload of files limited to approx 100KB - c0urier - 07-10-2010 02:09 AM

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.


RE: Upload of files limited to approx 100KB - mike548141 - 07-10-2010 02:17 AM

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


RE: Upload of files limited to approx 100KB - c0urier - 07-10-2010 03:28 AM

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.


RE: Upload of files limited to approx 100KB - mike548141 - 07-10-2010 04:33 AM

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


RE: Upload of files limited to approx 100KB - mike548141 - 07-10-2010 09:56 PM

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


RE: Upload of files limited to approx 100KB - mike548141 - 12-08-2010 04:44 PM

Realised I never updated this thread. I found it was the security module mod_security2 that was limiting uploads

MC


RE: Upload of files limited to approx 100KB - BeNe - 12-08-2010 10:20 PM

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


RE: Upload of files limited to approx 100KB - tomdooley - 12-09-2010 07:47 AM

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"