- Muaturun bacula-web
curl -O http://www.bacula-web.org/files/bacula-web.org/downloads/bacula-web-latest.tgz
sudo mkdir -v /var/www/bacula-web - Salin dan ekstrak ke /var/www
cp /home/user1/bacula-web-latest.tgz .
sudo cp /home/user1/bacula-web-latest.tgz .
tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
sudo tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
chown -Rv www-data: /var/www/bacula-web
sudo chown -Rv www-data: /var/www/bacula-web
sudo chmod -Rv u=rx,g=rx,o=rx /var/www/bacula-web
cd bacula-web/
cd application/config/
sudo cp config.php.sample config.php - Edit setting nama dan path fail sqlite pada /var/www/bacula-web/application/config/config.php
$config[0]['label'] = 'Main Backup Server';
$config[0]['db_type'] = 'sqlite';
$config[0]['db_name'] = '/var/lib/bacula/bacula.db'; - Edit /etc/php/7.0/apache2/php.ini dan set timezone
date.timezone = Asia/Kuala_Lumpur
- Edit /etc/apache2/sites-available/000-default.conf dan tambah berikut sebelum “</VirtualHost>”
<Directory /var/www/html/bacula-web> AllowOverride All </Directory>
- Ubah permission cache dan sqlite
sudo chmod 755 application/view/cache/
sudo chown www-data /var/lib/bacula/bacula.db
sudo chown www-data /var/lib/bacula
sudo service apache2 reload - Siap. Anda sekarang boleh mengakses bacula-web pada IP/bacula-web/
Categories