Forum Moderators: phranque

Message Too Old, No Replies

File upload limit

Any other config files?

         

pboreham

9:12 am on Oct 5, 2005 (gmt 0)

10+ Year Member



Hi all,

In conjunction with my thread on the php board (http://www.webmasterworld.com/forum88/10360-2-10.htm) I have an Apache question...

Checking the log files on my server I can see this error:-

"[Wed Oct 05 09:41:39 2005] [error] [client xx.xx.xx.xx] Requested content-length of 842103 is larger than the configured limit of 524288"

Which to me is obviously suggesting that the 512kb limit is still set somewhere.

I have changed the LimitRequestBody in php.conf and editted the php.ini file to allow large size uploads - and then restarted Apache, but though the new value is sticking in the config files, I still cannot upload anything bigger than 512kb.

Is there anywhere else I should be looking - at my wits end with it now!

Cheers, Paul.

dcrombie

11:17 am on Oct 5, 2005 (gmt 0)



Without knowing more about your system or settings it's hard to give any advice. Try googling for: content-length configured 524288

;)

pboreham

1:14 pm on Oct 5, 2005 (gmt 0)

10+ Year Member



What would you need to know? Do you want to see php.conf or php.ini?

Let me know and I will post it as I am desperate to sort this out!

Cheers, Paul

jdMorgan

3:43 pm on Oct 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The first result for the suggested search gives two steps to solve this problem. Have you tried both increasing the LimitequestBody and the memory_limit value?

Jim

pboreham

3:47 pm on Oct 5, 2005 (gmt 0)

10+ Year Member



Yep, have both increased to well over what I need - plus the max_upload_limit and max_post_limit (may not be exact names, but they are the right files!)....

dcrombie

1:00 pm on Oct 6, 2005 (gmt 0)



Run the phpinfo() command and tell us what the values are for:

post_max_size 
upload_max_filesize

There should be two values for each - the first is the one that matters.

pboreham

1:39 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



Hiya,

I put them way over the top...

First says "500M" and second "400M"

See why I am frustrated!?