From 458c03786735bd3e3b6619b2d20538bd55acd0c6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 28 Feb 2009 21:01:33 -0800 Subject: [PATCH] check some prereqs for installation --- install.php | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) 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/
+