From 90bbdf7dd27d1775f65d4c4f11cbf7150dcef917 Mon Sep 17 00:00:00 2001
From: Neil Blakey-Milner
Your document directory seems to be - accessible from the web. Change the documentRoot in your - environment.php configuration file to a place not accessible from - the web to prevent access outside of KnowledgeTree.
'; + print 'Your document directory is + set to the default, which is inside the web root. This may present + a security problem if your documents can be accessed from the web, + working around the permission system in + KnowledgeTree.
'; +} + +$linkcheck = generateLink('/Documents/', ''); +$handle = @fopen($linkcheck, 'rb'); +if ($handle !== false) { + print 'Your document directory seems to + be accessible via the web!
'; } ?> diff --git a/setup/precheckup.php b/setup/precheckup.php index ffcf5c8..48ea711 100644 --- a/setup/precheckup.php +++ b/setup/precheckup.php @@ -127,6 +127,7 @@ function bigEnough($name, $setting, $preferred, $bytes = false, $red = true) { } function must_extension_loaded($ext, $message = "") { + @dl($ext); if (extension_loaded($ext)) { return 'Available'; } @@ -167,6 +168,13 @@ function running_user() { return null; } +function htaccess() { + if (array_key_exists('kt_htaccess_worked', $_SERVER)) { + return 'Your web server is set up to use the .htaccess files.
'; + } + return 'Your web server is NOT set up to use the .htaccess files.
'; +} + ?> @@ -189,6 +197,16 @@ added. Green items means you're ready to go in this area. You can check back here to see if anything has changed in your environment if you have any problems. +You can let KnowledgeTree manage the PHP settings that apply to the +KnowledgeTree application (it won't affect your other applications) by +configuring your web server to use the .htaccess files that come with +KnowledgeTree. This will ensure that the settings for KnowledgeTree +(detailed below) are set up for optimal, reliable performance.
+ +=htaccess()?> +This relates to your PHP installation environment - which version of @@ -222,7 +240,7 @@ PHP you are running, and which modules are available.