From: Marcin Haba Date: Thu, 31 Dec 2015 16:22:09 +0000 (+0100) Subject: baculum: Add php-xml to requirements X-Git-Tag: Release-7.4.0~57 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a4bc362da062f38eefa0924441965616d618acd;p=bacula%2Fbacula baculum: Add php-xml to requirements --- diff --git a/gui/baculum/INSTALL b/gui/baculum/INSTALL index 0e804dbd90..63adb22a5f 100644 --- a/gui/baculum/INSTALL +++ b/gui/baculum/INSTALL @@ -50,6 +50,7 @@ PDO MySQL or PDO SQLite. * cURL PHP module. * MB String PHP module. * JSON PHP module. + * XML PHP module. - Bconsole - configured Bacula text based console - Access to Bacula catalog database - computer with Baculum installation should be able to connect to Bacula catalog database. There is not need to install Baculum @@ -73,7 +74,8 @@ php-pdo \ php-pgsql \ php-mysqlnd \ php-mbstring \ -php-bcmath +php-bcmath \ +php-xml In Fedora 20 PHP module for cURL support and for JSON support are compiled in PHP. diff --git a/gui/baculum/protected/Pages/Requirements.php b/gui/baculum/protected/Pages/Requirements.php index 4c4d1318af..6816d20c50 100644 --- a/gui/baculum/protected/Pages/Requirements.php +++ b/gui/baculum/protected/Pages/Requirements.php @@ -63,6 +63,10 @@ class Requirements { $requirements[] = 'Please install Module for JSON functions in PHP scripts.'; } + if(!class_exists('DOMDocument')) { + $requirements[] = 'Please install PHP DOM XML to support XML documents (usually included in php-xml binary package).'; + } + if(count($requirements) > 0) { echo '

Baculum - Missing dependencies