From 90bbdf7dd27d1775f65d4c4f11cbf7150dcef917 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Mon, 9 May 2005 21:13:17 +0000 Subject: [PATCH] Mention .htaccess, and test that .htaccess is working. --- setup/postcheckup.php | 16 ++++++++++++---- setup/precheckup.php | 20 +++++++++++++++++++- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/setup/postcheckup.php b/setup/postcheckup.php index 28a3311..9a64c53 100644 --- a/setup/postcheckup.php +++ b/setup/postcheckup.php @@ -44,10 +44,18 @@ that things are still set up correctly.

documentRoot, 0, strlen(KT_DIR)) == KT_DIR) { - print '

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.

+

.htaccess file

+ +

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.

+ + +

PHP version and extensions

This relates to your PHP installation environment - which version of @@ -222,7 +240,7 @@ PHP you are running, and which modules are available.

Fileinfo support - + -- libgit2 0.21.4