From: Evan Prodromou Date: Sun, 1 Mar 2009 05:01:33 +0000 (-0800) Subject: check some prereqs for installation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=458c03786735bd3e3b6619b2d20538bd55acd0c6;p=quix0rs-gnu-social.git check some prereqs for installation --- 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/
+