安装环境 bacula-web 7.4.0 CentOS 7
- 安装软件包
yum install -y httpd
yum install -y php php-gd php-pdo php-bcmath php-xml php-pgsql php-gettext php-mysql
systemctl enable httpd
systemctl start httpd
chmod -v 705 /var/lib/mysql/bacula #bacula数据库的位置
- 修改php配置
vim /etc/php.ini
date.timezone = Asia/Shanghai
- 建立目录并上传bacula-web软件包
mkdir -pv /var/www/html/bacula-web
cd /var/www/html/bacula-web
解包
tar -zxvf bacula-web-7.4.0.tgz
- 修改权限
cd /var/www/
chown -R apache:apache html/
chmod -R 555 html/
chmod 775 ./bacula-web/application/view/cache
cd /var/www/html/application/config
cp config.php.sample config.php
chown apache: config.php
chmod 755 config.php
- 修改配置文件
vim config.php
// Translations $config['language'] = 'en_US'; #默认语言
// MySQL bacula catalog $config[0]['label'] = 'Backup Server';
$config[0]['host'] = 'localhost'; $config[0]['login'] = 'bacula'; #登录数据库的用户
$config[0]['password'] = 'bacula'; #数据库密码
$config[0]['db_name'] = 'bacula'; #数据库名字
$config[0]['db_type'] = 'mysql';
$config[0]['db_port'] = '3306';
- 重新启动httpd服务
systemctl restart httpd
- 访问测试页面检查安装情况
http://IP/bacula-web/test.php
http://IP/bacula-web/