'http://php.net/datetime', 'pdo' => 'http://php.net/pdo', 'hash' => 'http://php.net/hash', 'json' => 'http://php.net/json', 'mbstring' => 'http://php.net/mbstring', 'pcre' => 'http://php.net/pcre', 'session' => 'http://php.net/session', 'simplexml' => 'http://php.net/simplexml', 'spl' => 'http://php.net/spl', 'tokenizer' => 'http://php.net/tokenizer', ); $requirements_met = true; /* Check versions of PHP */ $php_version_ok = version_compare(phpversion(), MIN_PHP_VERSION, '>='); /* If the version isn't ok, there's no point going any further*/ if (! $php_version_ok) { $requirements_met = false; } else { /* Check for required extensions */ $missing_extensions = array(); foreach ($required_extensions as $ext_name => $ext_url) { if (!extension_loaded($ext_name)) { $missing_extensions[$ext_name] = $ext_url; $requirements_met = false; } } if ( extension_loaded('pdo') ) { /* Check for PDO drivers */ $pdo_drivers = PDO::getAvailableDrivers(); if ( ! empty( $pdo_drivers ) ) { $pdo_drivers = array_combine( $pdo_drivers, $pdo_drivers ); // Include only those drivers that we include database support for $pdo_schemas = array( 'mysql', 'pgsql', 'sqlite' ); $pdo_drivers = array_intersect( $pdo_drivers, $pdo_schemas ); $pdo_missing_drivers = array_diff( $pdo_schemas, $pdo_drivers ); } $pdo_drivers_ok = count( $pdo_drivers ); if ( ! $pdo_drivers_ok ) { $requirements_met = false; } if ( $requirements_met && ! preg_match( '/\p{L}/u', 'a' ) ) { $requirements_met = false; } } else { $pdo_drivers_ok = false ; $pdo_drivers = array(); $requirements_met = false; } /** * $local_writable is used in the template, but never set in Habari * Won't remove the template code since it looks like it should be there * * This will only meet the requirement so there's no "undefined variable" exception */ $local_writable = true ; } /*return $requirements_met;*/ ?> Habari Requirements Check

Habari

PHP Upgrade needed...

Habari

@todo Upgrading PHP instructions

Writable directory needed...

Before you can install Habari, you first need to make the install directory writable by php, so that the installation script can write your configuration information properly. The exact process depends on the web server and the ownership of the directory.

If your web server is part of the group which owns the directory, you'll need to add group write permissions to the directory. The procedure for this is as follows:

  1. Open a terminal window, and then change to the installation directory:
    $> cd /path/to/habari/
  2. Change the mode (permissions) of the current directory:
    $> chmod g+w .

    $> chmod g+x .

    Note: You may need to use sudo and enter an administrator password if you do not own the directory.

If the web server is not part of the group which owns the directory, you will need to temporarily grant world write permissions to the directory:

  1. $> chmod o+w .

    $> chmod o+x .

Be sure to remove the write permissions on the directory as soon as the installation is completed.

@todo Windows instructions $ext_url) { $missing_ext_html[]= '' . $ext_name . ''; } $missing_ext_html = implode( ', ', $missing_ext_html ); ?>

Missing Extensions

Habari requires the following PHP extensions to be installed: . Please contact your web hosting provider if you do not have access to your server.

Unicode support needed...

Habari requires PHP's PCRE extension to have Unicode support enabled. Please contact your web hosting provider if you do not have access to your server.

No PDO drivers enabled

Habari requires that at least one PDO driver be installed. Please ask your hosting provider to enable one of the PDO drivers supported by Habari.