Koozali.org: home of the SME Server

DMay Webshare

Offline edb

  • *
  • 548
  • +0/-0
DMay Webshare
« 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?
......

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
DMay Webshare
« Reply #1 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.
--
Nick......

Offline edb

  • *
  • 548
  • +0/-0
DMay Webshare
« Reply #2 on: December 03, 2004, 04:38:29 AM »
Thank you ....NickR

That worked perfectly :pint:
......

Offline edb

  • *
  • 548
  • +0/-0
DMay Webshare
« Reply #3 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.
......

Offline edb

  • *
  • 548
  • +0/-0
DMay Webshare
« Reply #4 on: December 04, 2004, 08:23:57 AM »
Problem fixed by upgrading PHP ...
......