Pasang bacula-web pada Ubuntu 16.04

  1. Muaturun bacula-web
    curl -O
    sudo mkdir -v /var/www/bacula-web

  2. 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

  3. 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';

  4. Edit /etc/php/7.0/apache2/php.ini dan set timezone
    date.timezone = Asia/Kuala_Lumpur

  5. Edit /etc/apache2/sites-available/000-default.conf dan tambah berikut sebelum “</VirtualHost>”
    <Directory /var/www/html/bacula-web>
     AllowOverride All

  6. 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

  7. Siap. Anda sekarang boleh mengakses bacula-web pada IP/bacula-web/
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.