webacula不能访问 报错解决方案

查看apache的错误日志

# tail -f /etc/httpd/logs/error_log

错误1:

[error] [client 10.0.0.1] PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'Bacula version mismatch for the Catalog database. Wanted 14, got 15. ' in /var/www/webacula/html/index.php:195\nStack trace:\n#0 {main}\n thrown in /var/www/webacula/html/index.php on line 195

通过修改/var/www/webacula/html/index.php 中的 define('BACULA_VERSION', 14); 将14改为15,重启就可以进入访问页面了。

错误2:

[error] [client 10.0.0.1] PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'Directory "/var/www/webacula/data/cache" is not exists or not writable.' in /var/www/webacula/html/index.php:203\nStack trace:\n#0 {main}\n thrown in /var/www/webacula/html/index.php on line 203

可更改目录权限解决问题

# chmod 777 /var/www/webacula/data/cache 

错误3:

bconsole: ERROR TERMINATION at parse_conf.c:919
Config error: Cannot open config file "/opt/bacula/etc/bconsole.conf": Permission denied

编辑 # vim /var/www/webacula/application/config.ini配置文件
修改为 bacula.sudo = "/usr/bin/sudo"

转载于:https://www.cnblogs.com/ogrecn/p/7692049.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值