ons, 01.12.2004 kl. 07.57 skrev Tomas Kuliavas:

[...]

> > Looks very much like a 2MB limit somewhere in the code. Know anything of
> > it?
> 
> php memory limit or php upload limits or LimitRequestBody in apache.

I'd like to thank you and the SM crowd for resolving this obvious FAQ
for me, too. But not in the above posting.

Just a word on what I have:

RHAS3
Apache 2.0.46 update 3
php 4.3.2 update 3 
SM 1.4.3a, self-installed

Symptom: Could not upload (attach) a Bertine Zetlitz mp3 of 5MB (Mozilla
helpful popup: "Document contains no data").

Half an afternoon later, having searched on my harddisk (this list),
Googled and Apached and tried out things, finally Tomas K's
http://www.squirrelmail.org/wiki/en_US/AttachmentSize.

Turns out that on RHAS3, LimitRequestBody has to be modified in
/etc/httpd/conf.d/php.conf, not in /etc/httpd/conf/httpd.conf as the
Apache docs say.

I can now upload Bertine's mp3 :)

This for the archives, but Thomas: had you forgotten that you wrote
this, or do you just love reinventing the wheel? This turns out to be a
FAQ of vast dimension :).

--Tonni
___________________________________--

/etc/php.ni

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M

; Maximum size of POST data that PHP will accept.
post_max_size = 20M

memory_limit = 32M      ; Maximum amount of memory a script may consume
(8MB)

/etc/httpd/conf/httpd.conf

Zilch!

/etc/httpd/conf.d/php.conf

<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 20971520 # probably way too large
</Files>

restart httpd ...

-- 
Nothing sucksseeds like a pigeon without a beak ...

mail: [EMAIL PROTECTED]
http://www.billy.demon.nl
 
They love us, don't they, They feed us, won't they ...



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [EMAIL PROTECTED]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to