aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/install.php
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2018-02-14 14:09:08 +0100
committerAndreas Gohr <gohr@cosmocode.de>2018-02-14 14:09:08 +0100
commitac251797d34b789cfae895e5ec4c30cfb44536c1 (patch)
tree0a3bec4535e2931e051f774397d869845875202c /install.php
parenta0ac5933e4867acf2208d3ade1e71a87d1d4edd0 (diff)
downloaddokuwiki-ac251797d34b789cfae895e5ec4c30cfb44536c1.tar.gz
dokuwiki-ac251797d34b789cfae895e5ec4c30cfb44536c1.zip
try to display an error when installer is run without php
When a server has no PHP support enabled, it will either prompt to download a PHP file or may display it as HTML instead. When a user tries to run install.php with a server that does the latter, they will see some weird garbage with the browser trying to interpret raw PHP as HTML. This pathc adds a warning at the top, telling the user what is going on.
Diffstat (limited to 'install.php')
-rw-r--r--install.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/install.php b/install.php
index d7e6c5245..03430411d 100644
--- a/install.php
+++ b/install.php
@@ -1,4 +1,13 @@
<?php
+/*><div style="width:60%; margin: auto; background-color: #fcc;
+ border: 1px solid #faa; padding: 0.5em 1em;">
+ <h1 style="font-size: 120%">No PHP Support</h1>
+
+ It seems this server has no PHP support enabled. You will need to
+ enable PHP before you can install and run DokuWiki. Contact your hosting
+ provider if you're unsure what this means.
+
+</div>*/
/**
* Dokuwiki installation assistance
*