Tag Archives: bacula

Install webacula

You might think that webacula is simple thinkg but it’s not and you think that, you terrible wrong my friend. This is probably most powerfull tool for managing bacula-director. It’s a bit tricky to make it work but once it’s running nothing can stop it. I had find myself cople of times struggling to figured out why it does not wont to start, you’ll see what I’m talking about if you do it off the beaten track. If you want great backup system with great web management tool, just follow my steps because frankly you’ll hate it otherwise.

Everything begins with:

wget http://downloads.sourceforge.net/project/webacula/webacula/7.0.0/webacula-7.0.0.tar.gz

If you have already LAMP-ish stack, you can skip this step
yum install httpd php php-mysql php-gd

tar -xzvf /root/webacula-7.0.0.tar.gz

mv webacula-7.0.0/ /var/www/html/webacula
cd !$
usermod -aG bacula apache
chgrp bacula /usr/sbin/bconsole /etc/bacula/bconsole.conf
cd ../application

vim config.ini
bacula.bconsole = “/usr/sbin/bconsole”
bacula.bconsolecmd = “-n -c /etc/bacula/bconsole.conf”

vim /etc/sudoers
comment Defaults requiretty because otherwise you’ll get error like “sudo: sorry, you must have a tty to run sudo” later on

Defaults requiretty

Next step is my favorite one 🙂

vim /etc/selinux/config
>>> SELINUX=disabled

add following line in sudoers file or create config in:

vim /etc/sudoers.d/apache

apache ALL=NOPASSWD: /usr/sbin/bconsole

reboot (because the selinux) If you have selinux disabled from before it’s note necessary.

Check is apache has permissions to use bconsole:

su -l apache -s /bin/sh -c "/usr/bin/sudo /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf"
If you go straight to the bconsole, then sudo do the trick.

cd /var/www/html/webacula/install/apache/
cp webacula.conf /etc/httpd/conf.d/webacula.conf
vim /etc/httpd/conf.d/webacula.conf


Alias /webacula /usr/share/webacula/html

Deny from all


Alias /webacula /var/www/html/webacula/html

Allow from

update your db pass etc.

vim /var/www/html/webacula/application/config.ini

vim /etc/bacula/bacula-dir.conf
update :
catalog = all, !skipped, !saved

cd /var/www/html/webacula/install

Copy respose to db.conf:

db_pwd=”your root mysql pass”
webacula_root_pwd=”your res from ./password-to-hash.php”

cd MySql/

systemctl restart httpd.service

add Zend Framework to webacula:

cd /var/www/html/webacula/library
wget https://packages.zendframework.com/releases/ZendFramework-1.12.3/ZendFramework-1.12.3-minimal.tar.gz (download only ver 1.12.3!!!!!!)
tar -xzf ZendFramework-1.12.3-minimal.tar.gz
mkdir Zend
cp -Rf ZendFramework-1.12.3-minimal/library/Zend/* Zend/.

go to website 🙂

Now for some reason root passwd does not work out of the box, so we need to recover it by email.

mysql -u root -p
use bacula;
update webacula_users set email=’your email here’;

I preffer to use google mail because they don’t block messages from unexist sender such as root@localhost 🙂 The message will be in your spam folder but at least you’ll recieve it.

That’s all folsk, enjoy your Backup System.