CentOS7 under Configuration Bacula-web

Source: Internet
Author: User
Tags bacula

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.