From dd3fbf2c73a662a5d525178800d9697a895feea1 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 7 Feb 2018 15:26:44 +1300 Subject: [PATCH] BUG Fix installer checking wrong location for files --- src/Dev/Install/InstallRequirements.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Dev/Install/InstallRequirements.php b/src/Dev/Install/InstallRequirements.php index f768c9af8..df5817f70 100644 --- a/src/Dev/Install/InstallRequirements.php +++ b/src/Dev/Install/InstallRequirements.php @@ -282,7 +282,8 @@ class InstallRequirements '', )); - $this->requireWriteable('index.php', array("File permissions", "Is the index.php file writeable?", null)); + + $this->requireWriteable($this->getPublicDir() . 'index.php', array("File permissions", "Is the index.php file writeable?", null), true); $this->requireWriteable('.env', ["File permissions", "Is the .env file writeable?", null], false, false); @@ -293,9 +294,9 @@ class InstallRequirements "SilverStripe requires Apache version 2 or greater", $webserver )); - $this->requireWriteable('.htaccess', array("File permissions", "Is the .htaccess file writeable?", null)); + $this->requireWriteable($this->getPublicDir() . '.htaccess', array("File permissions", "Is the .htaccess file writeable?", null), true); } elseif ($isIIS) { - $this->requireWriteable('web.config', array("File permissions", "Is the web.config file writeable?", null)); + $this->requireWriteable($this->getPublicDir() . 'web.config', array("File permissions", "Is the web.config file writeable?", null), true); } $this->requireWriteable('mysite/_config.php', array(