Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: edb on December 02, 2004, 10:32:20 PM

Title: DMay Webshare
Post by: edb on December 02, 2004, 10:32:20 PM
Anyone know how to resolve this error;

Maximum POST size reached - see docs/faq.txt for more information

I have already created an entry in the /etc/e-smith/templates-custom/etc/php.ini/60FileUploads file to read:
file_uploads   = On
upload_max_filesize = {
    my $mf = db_get_prop($confref, 'php', 'UploadMaxFilesize') || "100M";
    $OUT .= "$mf";
}

But I continue to get the error. Any other ideas?
Title: DMay Webshare
Post by: NickR on December 03, 2004, 03:45:52 AM
This script will set it to 70 million bytes, adjust to taste - not that the number of bytes MUST be as written, not 70M:

---- Cut here ------
#!/bin/sh
/sbin/e-smith/config setprop php PostMaxSize 70000000
/sbin/e-smith/config setprop php UploadMaxFilesize 70000000

/etc/e-smith/events/actions/conf-php

/etc/rc.d/init.d/httpd-e-smith graceful

---- Cut here ------

BTW, this also raises the limit for Horde attachments, if anyone is looking to do that.
Title: DMay Webshare
Post by: edb on December 03, 2004, 04:38:29 AM
Thank you ....NickR

That worked perfectly :pint:
Title: DMay Webshare
Post by: edb on December 03, 2004, 10:29:57 PM
I spoke a little to soon.

Phpinfo now reads the correct PostMaxSize 70000000 and UploadMaxFilesize 70000000 but when I actually try to upload a 56Mg file I still get the "Maximum POST size reached - see docs/faq.txt for more information" error. I rebooted the server, tried again but still no go. Any ideas would be appreciated.
Title: DMay Webshare
Post by: edb on December 04, 2004, 08:23:57 AM
Problem fixed by upgrading PHP ...