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/check.php | 4 ++-- installer/test.php | 29 ++++++++++++++++++++++++++++- installer/welcome.html | 1 - 3 files changed, 30 insertions(+), 4 deletions(-) (limited to 'installer') diff --git a/installer/check.php b/installer/check.php index 8352364f5..b795fa9bb 100644 --- a/installer/check.php +++ b/installer/check.php @@ -1,7 +1,7 @@
'pcre', 'Session' => 'session', 'Sockets' => 'sockets'); +$required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session'); $optional_php_exts = array('FileInfo' => 'fileinfo', 'Libiconv' => 'iconv', 'Multibyte' => 'mbstring', 'OpenSSL' => 'openssl', 'Mcrypt' => 'mcrypt', 'GD' => 'gd'); @@ -65,7 +65,7 @@ foreach ($required_php_exts AS $name => $ext) { ?> -

These extensions are optional but recommended to get the best performance:

+

The next couple of extensions are optional but recommended to get the best performance:

$ext) { 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: '; diff --git a/installer/welcome.html b/installer/welcome.html index a0c88e5e9..200f680f3 100644 --- a/installer/welcome.html +++ b/installer/welcome.html @@ -10,7 +10,6 @@