2 2. Baculum operating system environment
3 2.1 General requirements
6 3. Preparing Baculum files
7 4. Preparing Apache Web Server
8 5. Example configuration VirtualHost
10 =========================================
14 Baculum is Bacula web based interface. It enables Bacula administration
17 - Running Bacula jobs (backup, restore, verify...)
18 - Monitoring Bacula services by getting status these services
19 - Bacula console available via web interface
20 - Support for customized and restricted consoles (Console ACL functionality)
21 - Multiple Directors support
22 - Volumes managenment including labeling new volumes
23 - User friendly graphs
24 - Basic storage daemon operations on volumes (mount, umount, release actions)
25 - Easy in use configuration and restore wizards
29 2. Baculum operating system environment
32 2.1 General requirements
35 Environment for Baculum installation should have following components:
37 - Web Server - with mod_rewrite module loaded. Baculum has been
38 tested on Apache HTTP Server and Lighttpd.
40 - PHP 5.3 or higher - as web server module. PHP CLI interpreter is not needed.
41 PHP should have installed next modules:
42 * PDO PHP support - depending on your catalog database: PDO PostgreSQL,
43 PDO MySQL or PDO SQLite.
44 Note, in case using MySQL database required is to use MySQL native driver.
45 It is php-mysqlnd for PHP, not php-mysql.
48 * MB String PHP module.
50 - Bconsole - configured Bacula text based console
51 - Access to Bacula catalog database - computer with Baculum installation should be
52 able to connect to Bacula catalog database. There is not need to install Baculum
53 on server with Bacula Catalog DB because Baculum can communicate with Bacula database
54 located on remote server.
56 Above requirements are validated during Baculum start. So if in installation
57 environment there lacks some from these components then you be informed
64 Packages required for run Baculum in Fedora environemnt can be installed by command:
75 In Fedora 20 PHP module for cURL support and for JSON support are compiled in PHP.
77 In case of using SELinux functionality in Baculum environment, recommended way
78 is switching "httpd_t" SELinux security doman to permissive domain like below:
80 # semanage permissive -a httpd_t
82 Please be sure that in PHP configuration file (usually located in /etc/php.ini)
83 there is option error_reporting set as below:
85 error_reporting = E_ALL & ~E_STRICT
88 Suggested method for Baculum webGUI access to Bacula Console (bconsole) is using
89 "sudo" functionality for that. In this case there is need to add to /etc/sudoers file two
90 lines according next template:
92 Defaults:apache_user !requiretty
93 apache_user ALL= NOPASSWD: bconsole_path
95 For example for user called "apache" from that HTTP service working with Baculum
96 there is need to add line like below:
98 Defaults:apache !requiretty
99 apache ALL= NOPASSWD: /usr/sbin/bconsole
105 Packages required for run Baculum in Debian environemnt can be installed by command:
107 apt-get install apache2 \
108 libapache2-mod-php5 \
115 In Debian 7.4.0, PHP modules for BCMath and MultiByte String support are compiled in PHP.
117 There is need to create symbolic link as below, for enable mod_rewrite module in Apache.
119 # ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
121 Please be sure that in PHP configuration file (usually located in /etc/php5/apache2/php.ini)
122 there is option error_reporting set as below:
124 error_reporting = E_ALL & ~E_STRICT
127 Suggested method for Baculum webGUI access to Bacula Console (bconsole) is using
128 "sudo" functionality for that. In this case there is need to add to /etc/sudoers below
129 line according next template:
131 apache_user ALL= NOPASSWD: bconsole_path
133 For example for user called "www-data" from that HTTP service working with Baculum
134 there is need to add line like below:
136 www-data ALL= NOPASSWD: /usr/sbin/bconsole
139 3. Preparing Baculum files
142 After downloading and unpacking Baculum sources archive there is need to set write
143 permissions for web server for three below directories:
145 /[files base location]/assets
146 /[files base location]/protected/Data
147 /[files base location]/protected/runtime
149 These directories permissions are validated during Baculum start. If web server
150 will not be able to write data in some from above directries then you be
151 informed about this fact.
154 4. Preparing Apache Web Server
157 First there is need to configure authentication to Baculum from web server side.
158 Baculum supports HTTP Basic authentication from web server with passwords stored
161 ./protected/Data/baculum.users
164 There is possible to use another location than:
165 ./protected/Data/baculum.users
166 however then is required provide the same auth data in Baculum initial wizard.
168 In Apache web server this authentication method may be realizing by next directives
169 declaration in Apache configuration file:
172 AuthUserFile /var/www/baculum/protected/Data/baculum.users
175 For creating passwords file you may use htpasswd binary file in next way:
177 # htpasswd -c /var/www/baculum/protected/Data/baculum.users someuser
179 You will be asked about inputing password and retype password for user.
182 "-c" switcher you should use only for new created passwords file. For existing
183 passwords file "-c" switcher should not be provided.
185 At the end there is need to give web server user possibility to manage the auth file:
188 chown www-data:www-data /var/www/baculum/protected/Data/baculum.users
190 5. Example configuration VirtualHost
194 DocumentRoot /var/www/baculum
195 ServerName somehost.example.com
196 <Directory /var/www/baculum>
199 AuthName MyPrivateFile
200 AuthUserFile /var/www/baculum/protected/Data/baculum.users
206 Above configuration should be writen in a new Apache configuration file.
207 for example, location for that can be put to /etc/apache2/sites-enabled/baculum.conf.
209 In this way, configuration file baculum.conf will be loaded automaticly during