diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-27 10:19:45 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-27 10:19:45 +0200 |
commit | 11c2aff8c9f72385ba782e859e955e8c2bfe7b55 (patch) | |
tree | 58cb58fd43dee69d179e9f5a9b2feb0145f3649e /lib/setup.php | |
parent | 9b674d26c051f1d1a4eebce046baa6460f97ed44 (diff) | |
download | nextcloud-server-11c2aff8c9f72385ba782e859e955e8c2bfe7b55.tar.gz nextcloud-server-11c2aff8c9f72385ba782e859e955e8c2bfe7b55.zip |
fixed installer failing due to htaccess. Thanks to Elias Probst
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/setup.php b/lib/setup.php index 9f31b47c0e5..afe56126277 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -275,12 +275,12 @@ class OC_Setup { private static function createHtaccess() { $SERVERROOT=OC::$SERVERROOT; $WEBROOT=OC::$WEBROOT; - $content = "ErrorDocument 404 /$WEBROOT/core/templates/404.php\n";//custom 404 error page - $content.= '<IfModule mod_php5.c>'; - $content.= 'php_value upload_max_filesize 512M';//upload limit - $content.= 'php_value post_max_size 512M'; - $content.= 'SetEnv htaccessWorking true'; - $content.= '</IfModule>'; + $content = "ErrorDocument 404 $WEBROOT/core/templates/404.php\n";//custom 404 error page + $content.= "<IfModule mod_php5.c>\n"; + $content.= "php_value upload_max_filesize 512M\n";//upload limit + $content.= "php_value post_max_size 512M\n"; + $content.= "SetEnv htaccessWorking true\n"; + $content.= "</IfModule>\n"; $content.= "Options -Indexes\n"; @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it |