diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-05 14:14:40 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-05 14:14:40 +0000 |
| commit | 7bf057a8d69078bdae78187e0f6e32d27b1b30df (patch) | |
| tree | c9a5b2efbfabd9cb052addcb3715914926da8566 /roundcubemail/installer/test.php | |
| parent | 3d1c195d417b6d0794ec581ccf76adc15ec57b19 (diff) | |
Remove test for sockets + check if temp and log dirs are writeable
git-svn-id: https://svn.roundcube.net/trunk@1186 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/test.php')
| -rw-r--r-- | roundcubemail/installer/test.php | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/roundcubemail/installer/test.php b/roundcubemail/installer/test.php index 7e9903991..9b7435d71 100644 --- a/roundcubemail/installer/test.php +++ b/roundcubemail/installer/test.php @@ -31,11 +31,38 @@ else if (!$read_db) { ?> +<h3>Check if directories are writable</h3> +<p>RoundCube may need to write/save files into these directories</p> +<?php + +if ($RCI->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 '<br />'; + } + + if (!$pass) + echo '<p class="hint">Use <tt>chmod</tt> or <tt>chown</tt> to grant write privileges to the webserver</p>'; +} +else { + $RCI->fail('Config', 'Could not read config files'); +} + +?> + <h3>Check configured database settings</h3> <?php $db_working = false; -if (!empty($RCI->config)) { +if ($RCI->configured) { if (!empty($RCI->config['db_backend']) && !empty($RCI->config['db_dsnw'])) { echo 'Backend: '; |
