diff --git a/setup/index.php b/setup/index.php index c9ed49ceb1..6e42d3d696 100644 --- a/setup/index.php +++ b/setup/index.php @@ -1179,6 +1179,15 @@ else $oP->output(); exit; } + if (!is_writable(dirname(FINAL_CONFIG_FILE).'/setup')) + { + $oP->add("

iTop configuration wizard

\n"); + $oP->add("

Fatal error

\n"); + $oP->error("Error: the directory where to store temporary setup files is not writable."); + $oP->p("The wizard cannot create operate. Please make sure that the directory '".realpath(dirname(FINAL_CONFIG_FILE))."/setup' is writable for the web server."); + $oP->output(); + exit; + } } try