Current time: 04-27-2024, 03:59 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
Post Reply 


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

Forum Jump:


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