[Pkg-owncloud-maintainers] lighttpd config
Diederik de Haas
didi.debian at cknow.org
Sun Jul 22 21:29:16 UTC 2012
Hi,
As discussed on irc, here're some configuration settings to take into account
when using lighttpd.
If you don't edit the appropriate php.ini, your maximum upload size will be 2MB.
Setting "upload_max_filesize = 512M" alone will not increase that to 512MB, but
8MB, which is the default value of post_max_size.
Setting "post_max_size = 513M" will allow uploads of about 512MB. The 1MB
difference is meant for other values in the upload (headers, form fields, etc).
There's another parameter in lighttpd.conf (or maybe owncloud.conf as used in
git) that's relevant and that is the following:
# Set the max upload size to 513MB, the value is in kilobytes
server.max-request-size = 525312
The default value of server.max-request-size is 2GB and not setting it will
leave it at that. If you set server.max-request-size to 262656 (for example)
then a 300MB upload will silently fail.
If the user tries to upload a file which exceeds the values in php.ini, then
he'll get a warning.
HTH,
Diederik
More information about the Pkg-owncloud-maintainers
mailing list