Apache 2.x
包含gettext,gd库,mysql模块的php 5.x
# yum install httpd
# chkconfig httpd on
# service httpd start
# yum install php php-gd php-gettext php-mysql php-pdo
# chmod -v 705 /var/lib/mysql/bacula (bacula数据库的位置)
vi /etc/php.ini
date.timezone = Asia/Shanghai
# chkconfig httpd on
# service httpd start
# cd /var/www/html
# mkdir bacula-web
# cd bacula-web
# wget http://www.bacula-web.org/tl_files/downloads/bacula-web.5.2.10.tar.gz
# tar -xzf bacula-web.5.2.10.tar.gz -C /var/www/html/bacula-web
# cd /var/www/html/
# chown -R apache:apache ./bacula-web
# chmod -R 555 ./bacula-web
# chmod 775 ./bacula-web/application/view/cache (赋予模板缓存写权限)
# cd bacula-web/application/config
# cp config.php.sample config.php
# chown apache: config.php
# chmod 755 config.php
# vi config.php
// Translations
$config['language'] = 'en_EN'; //默认英语
// MySQL bacula catalog
$config[0]['label'] = 'Backup Server';
$config[0]['host'] = 'localhost';
$config[0]['login'] = 'user'; //登录数据库的用户
$config[0]['password'] = 'password'; //数据库密码
$config[0]['db_name'] = 'dbname'; //数据库名字
$config[0]['db_type'] = 'mysql';
$config[0]['db_port'] = '3306';
service httpd restart
# http://ServerIP/bacula-web/test.php
如下图:
# http://ServerIP/bacula-web/index.php
如下图:
查看任务状态,点击Jobs status页面,可以查看各个任务的状态。
如果想直接访问IP就到dashboard界面下,可做如下操作:(另外也可在解包时候直接解压到/var/www/html/下)
# cp -ar /var/www/html/bacula-web/* /var/www/html/
# rm -rf /var/www/html/bacula-web
# service httpd restart
访问如图: