Install de webacula :
Avoir un serveur php mysql opérationel (Voir tuto précédent)
sudo apt-get install zend-framework
sudo nano /etc/sudoers
ajouter :
# Allow Apache to use bconsole binary
www-data ALL=NOPASSWD: /usr/bin/bconsole
sudo -s
mkdir /var/www/webacula
wget http://sourceforge.net/projects/webacula/files/latest/download?source=files
mv download\?source\=files webacula-5.5.tar.gz
tar -xvzf webacula-5.5.tar.gz
sudo nano /var/www/webacula/application/config.ini
[general]
;; supported adapters : PDO_MYSQL, PDO_PGSQL, PDO_SQLITE
db.adapter = PDO_MYSQL
db.config.host = localhost
db.config.username = root
db.config.password = VOTRE_MOT_DE_PASSE_BDD_BACULA
db.config.dbname = bacula
;; see http://www.php.net/timezones
; def.timezone = "UTC"
def.timezone = "Europe/Paris"
;; if locale undefined, webacula use autodetect
;; avaliable locales : en, cs, de, fr, pt_BR, ru, it, es
; locale = "fr"
Ensuite on modifie le fichier suivant :
sudo nano /var/www/webacula/install/db.conf
# See also application/config.ini
# bacula settings
db_name="bacula"
# for Sqlite only
db_name_sqlite="/var/bacula/working/bacula.db"
db_user="root"
# CHANGE_THIS
db_pwd="VOTRE_MOT_DE_PASSE_MYSQL_ROOT"
# Webacula web interface settings
#
# Built-in superuser login is 'root'
#
# CHANGE_THIS
webacula_root_pwd="VOTRE_MOT_DE_PASSE_ACCES_WEB"
Ensuite on créer la base de donnée mysql :
cd /var/www/webacula/install/MySql
# ./10_make_tables.sh
Creation of webacula MySQL tables succeeded.
# ./20_acl_make_tables.sh
Creation of Webacula ACLs MySQL tables succeeded.
On créer le fichier pour apache :
cp /var/www/webacula/install/apache/webacula.conf /etc/apache2.site-available
ensuite on modifie le fichier avec nos infos :
#
# Webacula - Web interface of a Bacula backup system
# Apache conf
#
# Allows only localhost by default
#
LoadModule rewrite_module modules/mod_rewrite.so
# AccessFileName .htaccess
# RewriteLog "/var/log/httpd/mod_rewrite.log"
# RewriteLogLevel 3
# SetEnv APPLICATION_ENV development
SetEnv APPLICATION_ENV production
Alias /webacula /var/www/webacula/webacula
<Directory /var/www/webacula/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 192.168.17.251
Allow from ::1
#
# change the settings below
#
# Allow from <your network>
</Directory>
<Directory /var/www/webacula/webacula/docs>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/webacula/application>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/webacula/languages>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/webacula/library>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/webacula/install>
Order deny,allow
Deny from all
</Directory>
<Directory /usr/share/webacula/tests>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/webacula/data>
Order deny,allow
Deny from all
</Directory>
#
# test mod_rewrite
#
<Directory /usr/share/webacula/html/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
#
# change the settings below
#
# Allow from <your network>
</Directory>
on charge dans apache le fichier :
sudo a2enmod rewrite
sudo a2ensite webacula
sudo ln -s /usr/share/php/libzend-framework-php/Zend/ /var/www/webacula/library/Zend
sudo chown www-data:www-data -R /var/www/webacula
http://localhost/webacula
:)
Install de bacula-web :
sudo mkdir /var/www/bacula-web
cd /var/www/bacula-web
sudo wget http://www.bacula-web.org/files/downloads/bacula-web-5.2.13-1.tar.gz
sudo tar -xvzf bacula-web-5.2.13-1.tar.gz
sudo chmod -R 777 view/cache
sudo cp application/config/config.php.sample application/config/config.php
sudo nano application/config/config.php
[Ajouter ces informations de base de données]
modifier le vhost apache :
sudo nano /etc/apache2/sites-available/default
$ajouter
<Directory /var/www/bacula-web>
AllowOverride All
</Directory>
entre les <virtualHost>
et redemmarer apache :
sudo service apache2 restart
et ce connecter à l’interface bacula :
http://ip/bacula-web/test.php
WebOgraphie :
Téléchargement :
http://sourceforge.net/projects/webacula/files/webacula/5.5.0/
http://wiki.nekolover.net/plateformes/backup/bacula/webacula
http://www.java-tutorial.ch/ubuntu/webacula-installation-on-ubuntu
Si erreur bavcula = 12
http://sourceforge.net/p/webacula/support-requests/18/
si impossible de ce connecter avec l'user par defaut :
http://sourceforge.net/mailarchive/forum.php?thread_name=4F0ADDCA.3050405%40revpol.com&forum_name=webacula-users
http://www.java-tutorial.ch/ubuntu/webacula-installation-on-ubuntu
http://webcache.googleusercontent.com/search?q=cache:ZH6pB9H_CBUJ:https://www.digitalocean.com/community/articles/installing-and-configuring-bacula-on-an-ubuntu-12-04-vps+&cd=2&hl=fr&ct=clnk&gl=fr&client=ubuntu
http://webmodelling.com/webbits/miscellaneous/bacula.aspx
http://doc.ubuntu-fr.org/bacula