Installing Bacula on NethServer

Taken care of:

config set bacula service status enabled TCPPort 9101 9102 9103 10001 private signal-event firewall adjust
output…
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] …

others will use 10000 for Webmin i changed mine to 10001 as RPC had consumed that port for me…

all ports that were applicable were opened in iptables… located at
/etc/sysconfig/

nano iptables

or

vi iptables

-A INPUT -p tcp -m tcp --dport 10001 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9101 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9102 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9103 -j ACCEPT

Now adding Bacula-Web for GUI Reporting

Screenshots:http://www.bacula-web.org/gallery.html
located here:

http://www.bacula-web.org/docs/installing/installing-on-redhat-centos-fedora.html

Install:

Follow:

Install required packages on RedHat / Centos / Fedora
Install Apache web server if you havent already, make sure all commands are ran follow with the link open along with this:

$ sudo yum install httpd
$ sudo chkconfig httpd on
$ sudo service httpd start

$ sudo yum install httpd
$ sudo chkconfig httpd on
$ sudo service httpd start

Install PHP

Install PHP and PHP support for the database you’ve installed for Bacula

with MySQL database support

$ sudo yum install php php-gd php-gettext php-mysql php-pdo

go to this page next:

http://www.bacula-web.org/docs/installing/downloading.html

Follow

Move into Apache directory
On RedHat / Centos
cd /var/www/html

Download the source tarball
curl -O http://www.bacula-web.org/files/bacula-web.org/downloads/bacula-web-latest.tgz

Then go to this page:

http://www.bacula-web.org/docs/installing/configuring.html

Follow:

Configuring Bacula-Web

From Bacula-Web root folder, copy the file config.php.sample as below

Please note that since version 5.1.0, the config file is a PHP script.
cd application/config

cp -v config.php.sample config.php

chown -v apache: config.php

Go to the Bottom:

Here’s the tricky part

Here’s below how your configuration file (config.php) could look like change to this:

<?php // Language $config[0]['language'] = 'en_EN'; // Show inactive clients $config['show_inactive_clients'] = false; // Hide empty pools $config['hide_empty_pools'] = true; //MySQL bacula catalog (note:make sure you uncomment all the config statements below, take off the // at the beginning and pull the statement flush as shown) $config[0]['label'] = 'Backup Server'; $config[0]['host'] = 'localhost'; $config[0]['login'] = 'baculaweb'; (>>>>>this becomes root) $config[0]['password'] = 'password'; (>>>this becomes your main mysql password) $config[0]['db_name'] = 'bacula'; $config[0]['db_type'] = 'mysql'; $config[0]['db_port'] = '3306'; save the script Then to this page: mine was already setup no changes but just incase: http://www.bacula-web.org/docs/installing/configuring-the-web-server.html Modify PHP configuration file File: /etc/php.ini For *BSD users, the file is located /usr/local/etc/php.ini Locate and modify the line below date.timezone = with this value (for example) date.timezone = Europe/Zurich Then Reload Apache configuration sudo service httpd reload || sudo /etc/init.d/httpd reload or service httpd restart Lastly Secure your web server This file does is not there, you must create a new one: sudo vim /etc/httpd/conf.d/bacula-web.conf or nano /etc/httpd/conf.d/bacula-web-conf and add the content below AllowOverride All then save as bacula-web-conf Next Restart Apache service httpd restart After installing and configuring Bacula-Web, just ensure that Bacula-Web will work fine. A test page exist for this purpose that check the following items required package are succesfully installed smarty template cache good permissions php modules are installed and properly configured *****To test your installation of Bacula-Web, follow this link http://yourserveroripaddress/bacula-web/test.php your dash should look like the webpage located at: http://www.bacula-web.org/docs/installing/testing-the-installation.html at the bottom: