Koozali.org: home of the SME Server
Obsolete Releases => SME Server 6.x => Topic started by: paradox on April 14, 2006, 04:34:14 AM
-
I've been running SME 6.01 for a few months now - but I cannot seem to get rid of one particularly nagging problem. When any of the users in the network attempt to upload a file to the internet that is larger than 1 MB in file size, they receive an error message saying that the connection was reset or timed out. From what I can gather, this has something to do with my squid and/or cache settings - but I can't seem to find a solution.
Any suggestions?
-
try here:
http://forums.contribs.org/index.php?topic=27249.0
This fix didnt fix my specific issue, I must look further.
-
It doesn't seem to have fixed my issue, but I'm hoping if I play around with the values a little that that will change. Thanks for the heads up.
-
It doesn't seem to have fixed my issue, but I'm hoping if I play around with the values a little that that will change. Thanks for the heads up.
Actually, I found the fix for my problem here:
http://no.longer.valid/phpwiki/index.php/TroubleshootingFAQ#upload_size
here is the specific text, in case the link doesnt work.
"
Cannot upload files larger than x MB via webmail, php, http, squid or in general
Anything using php should have it's limit set high to 50Mbyte with these 4 lines of code.
/sbin/e-smith/config setprop php PostMaxSize 50000000
/sbin/e-smith/config setprop php UploadMaxFilesize 50000000
/etc/e-smith/events/actions/conf-php
/etc/rc.d/init.d/httpd-e-smith graceful
No harm will be done ... just adjust 50000000 if you want less or more. If the machine slows down, maybe even starts thrashing you may want to give also time&space:
/sbin/e-smith/config setprop php MaxExecutionTime 1800
/sbin/e-smith/config setprop php MemoryLimit 100M
/etc/e-smith/events/actions/conf-php
/etc/rc.d/init.d/httpd-e-smith graceful
Raising the http upload size in squid
mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf
Place template fragment into temlplate directory:
echo "request_body_max_size 20 MB" > /etc/e-smith/templates-custom/etc/squid/squid.conf/85request_body_max_size
Expand (activate) Template:
/sbin/e-smith/expand-template /etc/squid/squid.conf
Restart squid to enable new settings:
/etc/init.d/squid restart
2nd way
/sbin/e-smith/expand-template /etc/squid.conf
touch /etc/e-smith/templates-custom/etc/squid/squid.conf/76UploadLimit
Edit the file 76UploadLimit and fill in:
{
# this sets the HTTP Upload Limit; 0 is unlimted
}
request_body_max_size 50 MB
After request_max_body_size must be new/additional line!
Restart squid:
service squid restart
smeghead, Red Beard, Darrel May
"
Nailed it, and only after 5 year of on/off work on it.
:-D