Changes

Jump to navigation Jump to search
750 bytes added ,  03:37, 1 February 2008
Added upload file size section & commands
Line 64: Line 64:  
  yum remove smeserver-webshare
 
  yum remove smeserver-webshare
 
  yum remove perl-Apache-Htpasswd
 
  yum remove perl-Apache-Htpasswd
 +
 +
 +
==== Adjusting upload file size ====
 +
 +
Default php settings in sme server will severely limit the file upload size.
 +
 +
These can be adjusted by db commands, see
 +
http://wiki.contribs.org/index.php?title=SME_Server:Documentation:Technical_Manual:Booklet#Php
 +
 +
To see the default settings do
 +
config show php
 +
 +
The following commands will set a 50Mb file upload size.
 +
 +
As this includes system overheads, you should specify a value slightly larger than the maximum file size you wish to upload.
 +
 +
db configuration setprop php MaxExecutionTime 3600
 +
db configuration setprop php MemoryLimit 50M
 +
db configuration setprop php PostMaxSize 50M
 +
db configuration setprop php UploadMaxFilesize 50M
 +
expand-template /etc/php.ini
 +
/etc/init.d/httpd-e-smith restart
    
=== Additional information ===
 
=== Additional information ===
624

edits

Navigation menu