X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/11cef71c5608efdf93d400622140ef48f08b18f6..7c9f391d66e4e984a1d23632811ca885d7266676:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index 76a257ca..d39871f8 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -92,6 +92,11 @@ if ($request->isGet()) { echo('Error: PHP version is not high enough: '.phpversion().'. Required: '.$required_version.'.
'); } + // Check is PHP session path is writeable. + if (!is_writable(session_save_path())) { + echo('Error: PHP session path '.session_save_path().' is not writable.
'); + } + // Depending on DSN, require either mysqli or mysql extensions. if (strrpos(DSN, 'mysqli://', -strlen(DSN)) !== FALSE) { if (extension_loaded('mysqli')) { @@ -131,6 +136,11 @@ if ($request->isGet()) { } } + // Check is libxml is enabled (which is a PHP default). + if (!function_exists('libxml_clear_errors')) { + echo('Error: libxml is not enabled. It is required for import group operation (to parse XML).
'); + } + // Check database access. require_once('MDB2.php'); $conn = MDB2::connect(DSN);