webacula-configuration-step-for-centos 7

webacula-configuration-step-for-centos 7


Webacula is Web + Bacula - web interface of a Bacula backup system.
webacula, step by step webacula, webacula gui, webacula server configuration, webacula installaction, Webacula, Web + Bacula, web interface of a Bacula backup system, bacula, bacula 7, bacula 9

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-Mysql
OR
yum --enablerepo=remi install php-ZendFramework-Captcha php-ZendFramework-Db-Adapter-Pdo-Mysql

webacula-1-zend.png

Step 3:

Download WeBacula in /tmp & Extract


OR


01-webacula-download.png

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

01-webacula-php.png

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"

01webacula-db.png

create db tables for webcaula.

cd /var/www/html/webacula/install/MySql/
./10_make_tables.sh
./20_acl_make_tables.sh

01webacula-table.png

Step 6:

Add apache to bacula group
groupadd bacula
usermod -aG bacula apache

01-webacula-usersermod.png

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
01-webacula-permission.png

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"

01-webacula-bconsole.png

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 permanent
OR
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';



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);

Previous
Next Post »

2 comments

Write comments
sathees kumar
AUTHOR
July 25, 2017 at 6:47 PM

Hi ...
I am getting the below eeror
Forbidden

You don't have permission to access /webacula on this server.

Reply
avatar
Mahboob Ali
AUTHOR
October 14, 2017 at 7:21 AM

Hello,

I've also receive same error.
You don't have permission to access /webacula on this server.

It request you please reply.

Reply
avatar