First, Introduction
Bacula-web is a PHP-written web application, it can run on Apache or nginx, mainly can do a Bacula backup display.
Second, installation and configuration
1) Install Apache
# sudo yum-y install httpd# systemctl enable httpd# systemctl start httpd
2) Install PHP and database-related modules
# sudo yum install php php-gettext php-mysql php-pdo
3) Find the location of the Bacula database file
Bacula database default file is stored under/var/spool/bacula # chmod-v 755/var/spool/bacula# chmod-v 704/var/spool/bacula/bacula.db
4) Adjust the PHP configuration file
# Vim/etc/php.inidate.timezone = Asia/shanghai
5) Download and install Bacula-web
# cd/var/www/html/# mkdir-p bacula-web# cd Bacula-web upload already bacula-web package bacula-web-7.4.0.tgz to current directory # TAR-XZF bacula-web-7.4.0.tgz# chown-rv Apache:/var/www/html/bacula-web# chmod-r 555/var/www/html/bacula-web# chmod 775/var/w Ww/html/bacula-web/application/view/cache
6) Configuration Bacula-web
# CD /VAR/WWW/HTML/BACULA-WEB/APPLICATION/CONFIG# CP config.php.sample config.php# chown apache: config.php# chmod 755 config.php# vim config.php// translations$config[' language '] = ' En_EN '; //default English // MySQL bacula catalog $config [0][' label '] = ' backup server '; $config [0][' host '] = ' localhost '; $config [0][' login '] = ' user '; //login database users $config [0][' Password '] = ' password '; //database password $config [0][' db_name '] = ' dbname '; //database name $config [0][' db_type '] = ' mysql '; $config [0][' Db_port '] = ' 3306 '; # systemctl restart httpd
7) Test Bacula-web
Because my server name is bacula.ops.com can be http://bacula.ops.com/bacula-web/test.php to see if the test page is normal and then we look at the information under Dashboard:/http bacula.ops.com/bacula-web/index.php
8) Optimize the Bacula-web
The main purpose is to allow direct input of the host name, can directly see the display of the backup interface
# cp-ar/var/www/html/bacula-web/*/var/www/html/# rm-rf/var/www/html/bacula-web# service httpd restart
9) View Bacula-web interface
Enter the domain name in the browser, we can see the backup interface as follows:
To this, the Bacula-web configuration is basically complete.
CentOS7 under Configuration Bacula-web