From 308f419bfa12824338ce98b6adcbc58bfef15581 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 5 Mar 2008 14:14:40 +0000 Subject: Remove test for sockets + check if temp and log dirs are writeable --- installer/test.php | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'installer/test.php') diff --git a/installer/test.php b/installer/test.php index 7e9903991..9b7435d71 100644 --- a/installer/test.php +++ b/installer/test.php @@ -31,11 +31,38 @@ else if (!$read_db) { ?> +

Check if directories are writable

+

RoundCube may need to write/save files into these directories

+configured) { + $pass = false; + foreach (array($RCI->config['temp_dir'],$RCI->config['log_dir']) as $dir) { + $dirpath = $dir{0} == '/' ? $dir : $docroot . '/' . $dir; + if (is_writable(realpath($dirpath))) { + $RCI->pass($dir); + $pass = true; + } + else { + $RCI->fail($dir, 'not writeable for the webserver'); + } + echo '
'; + } + + if (!$pass) + echo '

Use chmod or chown to grant write privileges to the webserver

'; +} +else { + $RCI->fail('Config', 'Could not read config files'); +} + +?> +

Check configured database settings

config)) { +if ($RCI->configured) { if (!empty($RCI->config['db_backend']) && !empty($RCI->config['db_dsnw'])) { echo 'Backend: '; -- cgit v1.2.3