9.11.11

installing webacula on debian squeeze (6.0.3) and bacula 5.0.3.

notes are based on instructions found at http://www.java-tutorial.ch/ubuntu/webacula-installation-on-ubuntu with just few minor corrections...

notes:
cd /usr/local/src/
git clone http://github.com/tim4dev/webacula
cd webacula/
mkdir /usr/share/webacula/
apt-get install zendframework php5-gd
a2enmod rewrite
cp -rfp * /usr/share/webacula/
cd /usr/share/webacula/
joe config.ini
usermod -aG bacula www-data
chown root:bacula /usr/bin/bconsole
chmod u=rwx,g=rx,o= /usr/bin/bconsole
chown root:bacula /etc/bacula/bconsole.conf
chmod u=rw,g=r,o= /etc/bacula/bconsole.conf
cd /usr/share/webacula/data/
chmod 777 cache
[ -d /usr/share/webacula/library/Zend ] && rmdir /usr/share/webacula/library/Zend
ln -s /usr/share/php/Zend /usr/share/webacula/library/Zend
cd /usr/share/webacula/install/MySql
./10_make_tables.sh
./20_acl_make_tables.sh
joe /etc/apache2/httpd.conf (see below for its content)

cd /usr/share/webacula/install/
joe db.conf (add password for web login...)
joe /etc/php5/apache2/php.ini (set memory_limit = 32M and max_execution_time = 3600)
/etc/init.d/apache2 restart
/etc/init.d/bacula-director restart


cross you fingers and try to login (http://yourserver/webacula) :)

### /etc/apache2/httpd.conf - start ###

Alias /webacula  /usr/share/webacula/html

   RewriteEngine On
   RewriteBase   /webacula
   RewriteCond %{REQUEST_FILENAME} -s [OR]
   RewriteCond %{REQUEST_FILENAME} -l [OR]
   RewriteCond %{REQUEST_FILENAME} -d
   RewriteRule ^.*$ - [NC,L]
   RewriteRule ^.*$ index.php [NC,L]
   php_flag magic_quotes_gpc off
   php_flag register_globals off
   Options Indexes FollowSymLinks
   AllowOverride All
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
   Allow from localhost
   Allow from ::1
   Allow from 161.53.12.0/24

   Order deny,allow
   Deny from all
   Order deny,allow
   Deny from all
   Order deny,allow
   Deny from all
   Order deny,allow
   Deny from all
   Order deny,allow
   Deny from all
   Order deny,allow
   Deny from all
   Order deny,allow
   Deny from all
#
# test mod_rewrite
#
   RewriteEngine On
   # for test mod_rewrite
   RewriteBase   /webacula/test_mod_rewrite
   RewriteRule ^testlink([^/]*).html$  index.php?testlink=$1 [L]
   php_flag magic_quotes_gpc off
   php_flag register_globals off
   Options Indexes FollowSymLinks
   AllowOverride All
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
   Allow from localhost
   Allow from ::1
### /etc/apache2/httpd.conf - end ###
### /etc/bacula/bacula-dir.conf (part) - start ###
#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
#webacula  
  catalog = all, !skipped, !saved
}
### /etc/bacula/bacula-dir.conf (part) - end #####


2 comments:

Anonymous said...

hi,

is the database the same one from bacula, or is it a separate one?

Saša Čavara said...

bacula's db. see http://www.java-tutorial.ch/ubuntu/webacula-installation-on-ubuntu under "Webacula configuration"