Monday, 20 July 2015

Webacula Installation and Configuration with postgresql on Centos 6

Install Apache Server:

#yum install httpd
#chkconfig httpd on
#service httpd start

1.Download webacula-7.0.0 from the below link.

2.Untar the file.
#cd /root/Downloads
#tar -zxvf webacula-7.0.0.tar.gz

3.copy the directory to /var/www/html
#cp webacula-7.0.0 /var/www/html/

4.Rename the directory.
#mv webacula-7.0.0 webacula

5.Check the System Requirements.
#cd /var/www/html/webacula/install/

Webacula check System Requirements...

Current MySQL version = 5.5.41 OK
Current PostgreSQL version = 9.2.4 OK
Current Sqlite version = 3.6.20 OK

Current PHP version = 5.3.3 OK

php pdo installed. OK
php gd installed. OK
php xml installed. OK
php dom installed. OK

Warning. PHP extension pdo_mysql not installed.
php pdo_pgsql installed. OK
php pdo_sqlite installed. OK
php-dom, php-xml installed. OK

7.I am using postgresql database so, i am ignoring this warning.

8.If you don't have these requirements then you can install by the below commands.
Go to website and search for php-pgsql-5.3.3-40.el6_6.x86_64.
Download that package.
Install by the below command.
#rpm -ivh php-pgsql-5.3.3-40.el6_6.x86_64
It will ask for Dependency Packages.
So,you have to install dependency packages also.
Download all the below packages from

After downloading all packages install by the below command.
#rpm -ivh <package name>

9.After installing all packages again check_system_requirements.

10.Download ZendFramework-1.11.5-minimal. Copy the directory ZendFramework-1.11.5-minimal/library/Zend to /var/www/html/webacula/library/
#cp ZendFramework-1.11.5-minimal/library/Zend /var/www/html/webacula/library/

11.Go to directory /var/www/html/webacula/application
#cd /var/www/html/webacula/application
Edit the config.ini file.
#vim config.ini
change the below lines as following:

db.adapter = PDO_PGSQL = localhost
db.config.username = postgres
db.config.password = postgres
db.config.dbname = bacula

def.timezone = "Asia/Kolkata"

bacula.sudo = ""
bacula.bconsole = "/opt/bacula/bin/bconsole"
bacula.bconsolecmd = "-n -c /opt/bacula/bin/bconsole.conf"

Create system group account (if not yet created) :
#groupadd bacula

Add apache to group:
usermod -aG bacula apache

Without using sudo
chown root:bacula /opt/bacula/bin/bconsole
chmod u=rwx,g=rx,o= /opt/bacula/bin/bconsole
chown root:bacula /opt/bacula/bin/bconsole.conf
chmod u=rw,g=r,o= /opt/bacula/bin/bconsole.conf

Edit application/config.ini
bacula.sudo = ""
bacula.bconsole = "/opt/bacula/bin/bconsole"

Here I am using without sudo.

With sudo

Edit application/config.ini
bacula.sudo = "/usr/bin/sudo"
bacula.bconsole = "/opt/bacula/sbin/bconsole"
Run visudo and changes

# (!!! comment here !!!) Defaults requiretty
apache ALL=NOPASSWD: /opt/bacula/sbin/bconsole
Check out the run bconsole :

# su -l apache -s /bin/sh \
-c "/usr/bin/sudo /opt/bacula/sbin/bconsole -n -c /opt/bacula/etc/bconsole.conf"

Edit webacula.conf

#cd /var/www/html/webacula/install/apache
#vim webacula.conf
Change the paths to /var/www/html instead of /usr/share.
Copy the file to /etc/httpd/conf.d/webacula.conf
#cp /var/www/html/webacula/install/apache/webacula.conf /etc/httpd/conf.d/webacula.conf

mod rewrite
Setup mod rewrite see html/.htaccess.
Edit RewriteBase parameter if
NOTE. Specific directories on your system may be different.
Check mod rewrite installed :
$ apachectl -t -D DUMP_MODULES 2>&1 | grep rewrite
rewrite_module (shared)

Increase values in /etc/php.ini :
memory_limit = 32M
max_execution_time = 3600

Edit db.conf file
#cd /var/www/html/webacula/install/
#vim db.conf
To set webacula_root_pwd you have to come out of the file and do like below
#./password-to-hash.php password
whatever your pssword is type instead of password in the above command.
Copy the output and pasteit into webacula_root_pwd in db.conf file.
Save the file by :wq

Next create Webacula tables, Webacula built-in roles and Webacula built-in

For MySQL:
#cd install/MySql

For PostgreSQL:
#cd install/PostgreSql

For Sqlite:
#cd install/SqLite

And further run scripts for your DBMS is running on localhost:

Now you can run webacula monitoring by

No comments:

Post a Comment