diff --git a/install.php b/install.php index a34214c48a..18fc362b62 100644 --- a/install.php +++ b/install.php @@ -3,7 +3,11 @@ define('INSTALLDIR', dirname(__FILE__)); function main() { - checkPrereqs(); + if (!checkPrereqs()) + { + return; + } + if ($_SERVER['REQUEST_METHOD'] == 'POST') { handlePost(); } else { @@ -13,6 +17,55 @@ function main() function checkPrereqs() { + if (file_exists(INSTALLDIR.'/config.php')) { + ?>

Config file "config.php" already exists.

+

Require PHP version 5 or greater.

Cannot load required extension "".

Cannot write config file to "".

+

On your server, try this command:

+
chmod a+w
+

Cannot write avatar directory "/avatar/".

+

On your server, try this command:

+
chmod a+w /avatar/
+