diff --git a/ktwebservice/checkup.php b/ktwebservice/checkup.php new file mode 100644 index 0000000..ac9fd62 --- /dev/null +++ b/ktwebservice/checkup.php @@ -0,0 +1,35 @@ +get('cache/cacheEnabled')?'The cache appears to be enabled. This is known to cause problems with the webservice. Please disable it.':'OK'; + +$uploadsDir = $config->get('webservice/uploadDirectory'); + +if (empty($uploadsDir)) $uploadsDir = 'The webservice/uploadDirectory setting is blank in the config.ini. Please configure it to an appropriate setting.'; + +$uploadsExists = !is_dir($uploadsDir)?'The upload directory does not exist.':'OK'; +$uploadsWritable = !is_writable($uploadsDir)?'The upload directory is not writable.':'OK'; + +?> +Basic Web Service Diagnosis + +
| KnowledgeTree Cache | ++ |
| Upload Directory | ++ |
| Upload Directory Exists | ++ |
| Upload Directory Writable | ++ |