From 6b25158bfa3797827f04dd2a328c4fae7b20d03e Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sun, 13 Apr 2014 13:57:32 +0200 Subject: [PATCH] Updated requirements for Baculum --- gui/baculum/INSTALL | 16 ++++++++++++++-- gui/baculum/protected/Pages/Requirements.php | 4 ++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gui/baculum/INSTALL b/gui/baculum/INSTALL index 64b84b530d..7e48fbe53d 100644 --- a/gui/baculum/INSTALL +++ b/gui/baculum/INSTALL @@ -46,6 +46,7 @@ PDO MySQL or PDO SQLite. * BCMath PHP module. * cURL PHP module. * MB String PHP module. + * JSON PHP module. - Bconsole - configured Bacula text based console - Access to Bacula catalog database - computer with Baculum installation should be able to connection to Bacula catalog database. There is not need to install Baculum @@ -71,13 +72,18 @@ php-mysqlnd \ php-mbstring \ php-bcmath -In Fedora 20 PHP module for cURL support is compiled in PHP. +In Fedora 20 PHP module for cURL support and for JSON support are compiled in PHP. In case of using SELinux functionality in Baculum environment, recommended way is switching "httpd_t" SELinux security doman to permissive domain like below: # semanage permissive -a httpd_t +Please be sure that in PHP configuration file (usually located in /etc/php.ini) +there is option error_reporting set as below: + +error_reporting = E_ALL & ~E_STRICT + Suggested method for Baculum webGUI access to Bacula Console (bconsole) is using "sudo" functionality for that. In this case there is need to add to /etc/sudoers file two lines according next template: @@ -102,7 +108,8 @@ libapache2-mod-php5 \ php5 \ php5-pgsql \ php5-mysql \ -php5-curl +php5-curl \ +php5-json In Debian 7.4.0, PHP modules for BCMath and MultiByte String support are compiled in PHP. @@ -110,6 +117,11 @@ There is need to create symbolic link as below, for enable mod_rewrite module in # ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load +Please be sure that in PHP configuration file (usually located in /etc/php5/apache2/php.ini) +there is option error_reporting set as below: + +error_reporting = E_ALL & ~E_STRICT + Suggested method for Baculum webGUI access to Bacula Console (bconsole) is using "sudo" functionality for that. In this case there is need to add to /etc/sudoers below line according next template: diff --git a/gui/baculum/protected/Pages/Requirements.php b/gui/baculum/protected/Pages/Requirements.php index 9b7d446334..d818c584ca 100644 --- a/gui/baculum/protected/Pages/Requirements.php +++ b/gui/baculum/protected/Pages/Requirements.php @@ -56,6 +56,10 @@ class Requirements { $requirements[] = 'Please install MB String PHP module for support for multi-byte string handling to PHP.'; } + if(!function_exists('json_decode')) { + $requirements[] = 'Please install Module for JSON functions in PHP scripts.'; + } + if(count($requirements) > 0) { echo '

Baculum - Missing dependencies