webacula-configuration-step-for-centos 7
Webacula is Web + Bacula - web interface of a Bacula backup system.
Step 1:
Download and Install Remi/EPEL7
yum install epel-release
OR
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.0-1.el7.remi.noarch
Step 2:
Installation Zend Framework e DB adapter for MySQL:
yum install php-ZendFramework-Captcha php-ZendFramework-Db-Adapter-Pdo-MysqlOR
yum --enablerepo=remi install php-ZendFramework-Captcha php-ZendFramework-Db-Adapter-Pdo-Mysql
Step 3:
Download WeBacula in /tmp & Extract
OR
tar xvf webacula-7.0.0.tar.gz
mv webacula-7.0.0 webacula
mv webacula /var/www/html/
cd /var/www/html/webacula/install/
Check Requirements
php check_system_requirements.php
Step 4:
Move to the library directory and create a symlink for Zend
ln -s /usr/share/php/Zend/ /var/www/html/webacula/library/
chown -R :apache /usr/share/php/Zend
Step 5:
Open db.conf file and add the password. It used to create table
vi /var/www/html/webacula/install/db.conf
db_name="bacula"
db_user="root"
db_pwd="server"
webacula_root_pwd="server32"
create db tables for webcaula.
cd /var/www/html/webacula/install/MySql/
./10_make_tables.sh
./20_acl_make_tables.sh
Step 6:
Add apache to bacula group
groupadd bacula
usermod -aG bacula apache
Allow Apache to execute bconsole file using bconsole.conf configuration file. My bconsole binary is under /usr/sbin/bconsole
chown root:bacula /usr/sbin/bconsole
chmod u=rwx,g=rx,o= /usr/sbin/bconsole
chown root:bacula /etc/bacula/bconsole.conf
chmod u=rw,g=r,o= /etc/bacula/bconsole.conf
Step 7:
Edit application/config.ini and add the bacula database name and credentials
vi /var/www/html/webacula/application/config.ini
[general]
;; supported adapters : PDO_MYSQL, PDO_PGSQL, PDO_SQLITE
db.adapter = PDO_MYSQL
db.config.host = localhost
db.config.username = bacula
db.config.password =
db.config.dbname = bacula
def.timezone = "Asia/Kolkata"
;; see INSTALL file for details
bacula.sudo = ""
bacula.bconsole = "/usr/sbin/bconsole"
bacula.bconsolecmd = "-n -c /etc/bacula/bconsole.conf"
Step 8:
Configure webacula for Apache
cp /var/www/html/webacula/install/apache/webacula.conf /etc/httpd/conf.d/
vi /etc/httpd/conf.d/webacula.conf
# Deny from all
Allow from all
# Allow from localhost
# Allow from ::1
Step 10:
Increase values in /etc/php.ini :
vi /etc/php.ini
memory_limit = 128M
max_execution_time = 300
Restart the Apache service
systemctl restart httpd
Step 11:
Disable SELinux for Create policy
Setenforce 0 # disable temp or modify /etc/selinux/config for permanentOR
grep httpd /var/log/audit/audit.log | audit2allow -M apache_policy
grep postfix /var/log/audit/audit.log | audit2allow -M postfix_policy
grep sendmail /var/log/audit/audit.log | audit2allow -M postfix_policy
semodule -i apache_policy.pp
semodule -i postfix_policy.pp
Access on Browser :
user = root
pwd = server32
Error 1:
If ROOT user not login : update email address and forget password
Solution :
mysql -uroot -p
use bacula;
update webacula_users set email='your email here';
use bacula;
update webacula_users set email='your email here';
Error 2:
Uncaught exception 'Zend_Exception' with message 'Bacula version mismatch for the Catalog database. Wanted 12, got 14. ' in /var/www/webacula/html/index.php:194\nStack trace:\n#0 {main}\n thrown in /var/www/webacula/html/index.php on line 194
Solution :
Edit index file and set current version =
vi /var/www/webacula/html/index.php
change line from
define('BACULA_VERSION', 12);
to
define('BACULA_VERSION', 14);
Leave a Comment