diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-05-29 17:43:13 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-05-29 17:43:13 +0200 |
commit | 6b34ba8a8ef94c36c73dc68eb6cfe9b12335f7a4 (patch) | |
tree | 9d35064afa69d955e1158794cd836ce5a28f5149 /lib/setup.php | |
parent | f48344df309819d4f121dfc0b98aca142db3ed14 (diff) | |
download | nextcloud-server-6b34ba8a8ef94c36c73dc68eb6cfe9b12335f7a4.tar.gz nextcloud-server-6b34ba8a8ef94c36c73dc68eb6cfe9b12335f7a4.zip |
Make max upload filesize configurable for apache hosts
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php index fa0b8f85905..72507f221b9 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -167,7 +167,10 @@ class OC_SETUP { private static function createHtaccess() { global $SERVERROOT; global $WEBROOT; - $content = "ErrorDocument 404 /$WEBROOT/templates/404.php\n"; + $content = "ErrorDocument 404 /$WEBROOT/templates/404.php\n";//custom 404 error page + $content.= "php_value upload_max_filesize 20M\n";//upload limit + $content.= "php_value post_max_size 20M\n"; + $content.= "SetEnv htaccessWorking true\n"; @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it $content = "deny from all"; |