Changeset 1186 in subversion


Ignore:
Timestamp:
Mar 5, 2008 9:14:40 AM (5 years ago)
Author:
thomasb
Message:

Remove test for sockets + check if temp and log dirs are writeable

Location:
trunk/roundcubemail/installer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/installer/check.php

    r1169 r1186  
    22<?php 
    33 
    4 $required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session', 'Sockets' => 'sockets'); 
     4$required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session'); 
    55 
    66$optional_php_exts = array('FileInfo' => 'fileinfo', 'Libiconv' => 'iconv', 
     
    6666?> 
    6767 
    68 <p class="hint">These extensions are <em>optional</em> but recommended to get the best performance:</p> 
     68<p class="hint">The next couple of extensions are <em>optional</em> but recommended to get the best performance:</p> 
    6969<?php 
    7070 
  • trunk/roundcubemail/installer/test.php

    r1171 r1186  
    3232?> 
    3333 
     34<h3>Check if directories are writable</h3> 
     35<p>RoundCube may need to write/save files into these directories</p> 
     36<?php 
     37 
     38if ($RCI->configured) { 
     39    $pass = false; 
     40    foreach (array($RCI->config['temp_dir'],$RCI->config['log_dir']) as $dir) { 
     41        $dirpath = $dir{0} == '/' ? $dir : $docroot . '/' . $dir; 
     42        if (is_writable(realpath($dirpath))) { 
     43            $RCI->pass($dir); 
     44            $pass = true; 
     45        } 
     46        else { 
     47            $RCI->fail($dir, 'not writeable for the webserver'); 
     48        } 
     49        echo '<br />'; 
     50    } 
     51     
     52    if (!$pass) 
     53        echo '<p class="hint">Use <tt>chmod</tt> or <tt>chown</tt> to grant write privileges to the webserver</p>'; 
     54} 
     55else { 
     56    $RCI->fail('Config', 'Could not read config files'); 
     57} 
     58 
     59?> 
     60 
    3461<h3>Check configured database settings</h3> 
    3562<?php 
    3663 
    3764$db_working = false; 
    38 if (!empty($RCI->config)) { 
     65if ($RCI->configured) { 
    3966    if (!empty($RCI->config['db_backend']) && !empty($RCI->config['db_dsnw'])) { 
    4067 
  • trunk/roundcubemail/installer/welcome.html

    r1162 r1186  
    1111      <li>PCRE (perl compatible regular expression)</li> 
    1212      <li>Session support</li> 
    13       <li>Sockets enabled</li> 
    1413      <li>Libiconv (recommended)</li> 
    1514      <li>OpenSSL (recommended)</li> 
Note: See TracChangeset for help on using the changeset viewer.