Baculum GUI Deploy
<![CDATA[]]>

Captura de tela de 2015-06-08 17:52:08

Baculum is a GUI that allows you to change settings of your Bacula, and submit backup, restore etc.

a) Make sure that the dependencies are installed (Debian 8):

apt-get install apache2 libapache2-mod-php5 php5 php5-pgsql php5-mysql php5-curl php5-json

b) Access at this site Blog> Right side Menu Links> Download Bacula, and look inside the folder bacula.x.tar.gz the code of the latest version – GUI. Or download directly with the command:

cd /usr/src

wget http://downloads.sourceforge.net/project/bacula/bacula/7.0.5/bacula-gui-7.0.5.tar.gz

c) Unpack the file:

tar -xzvf bacula-gui-7.0.5.tar.gz

d) Copy baculum folder to /var/www:

cp -r baculum/ /var/www/

e) Edit and insert the following line in /etc/sudoers – (Apache user)

vi /etc/sudoers

www-data ALL= NOPASSWD: /usr/sbin/bconsole

f) Provide write permissions on folders:

chown www-data /var/www/baculum/assets
chown www-data /var/www/baculum/protected/Data
chown www-data /var/www/baculum/protected/runtime

g) Create the credentials for Apache authentication. Example with admin user:

htpasswd -c /etc/apache2/passwords admin

Note: The “c” should only be used for creating new users.

h) Remove the cool Apache’s default file and create a baculum.conf file:

rm /etc/apache2/sites-enabled/000-default

vi /etc/apache2/sites-enabled/baculum.conf

i) Configuration sample:

<VirtualHost *:80>

ServerName bacula

DocumentRoot /var/www/baculum

<Directory /var/www/baculum>
AllowOverride All
AuthType Basic
AuthName MyPrivateFile
AuthUserFile /etc/apache2/passwords
Require valid-user
</Directory>
</VirtualHost>

j) Enable Apache mod_rewrite:

a2enmod

rewrite

k) Make sure that the link exists:

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load

l) Edit the php.ini

vi /etc/php5/apache2/php.ini

m) Change the value of error_reporting:

error_reporting = E_ALL &amp; ~E_STRICT

n) Restart Apache:

/etc/init.d/apache2 restart

o) Access baculum:

https://seu_ip/baculum

m) Proceed with the installation wizard. The user credential to be inserted must match the set for Apache previously.

Disponível em: pt-brPortuguês (Portuguese (Brazil)) enEnglish

Leave a Reply

Close Menu