Hi,
I have installed webacula on a Ubuntu 11.10, but i'm a total noob... :/
I can't access webacula at all...
Bacula, Apache, Mysql, PHP, etc... are installed...
Here's what I does:
Command = Blue
File content = Green
Code:
apt-get install zend-framework
mkdir /var/www/webacula && cd /var/www/webacula
wget https://github.com/tim4dev/webacula/tarball/master
mv master webacula-src.tar.gz
tar xfzv webacula-src.tar.gz
mv tim4dev-webacula-544ce5e/* ./ && rm -r tim4dev-webacula-544ce5e/
echo "www-data ALL=NOPASSWD: /usr/bin/bconsole" >> /etc/sudoers
cat /var/www/webacula/application/config.ini
;
; config.ini
; Webacula 5.5
;
[general]
;; supported adapters : PDO_MYSQL, PDO_PGSQL, PDO_SQLITE
db.adapter = PDO_MYSQL
db.config.host = localhost
db.config.username = root
db.config.password = MY_MYSQL_ROOT_PASSWORD
db.config.dbname = bacula
;; for Sqlite db.config.dbname = "/full patch/bacula.db"
;; see http://www.php.net/timezones
; def.timezone = "UTC"
def.timezone = "Europe/Minsk"
;; if locale undefined, webacula use autodetect
;; avaliable locales : en, cs, de, fr, pt_BR, ru, it, es
; locale = "en"
;; see INSTALL file for details
bacula.sudo = "/usr/bin/sudo"
bacula.bconsole = "/usr/bin/bconsole"
bacula.bconsolecmd = "-n -c /etc/bacula/bconsole.conf"
;; time to live data (session and temporary data tables) for restore files (sec)
; default = 1h
; ttl_restore_session = 3600
;; the text, which will be placed in the header of the page
; head_title = "webacula :: domain.tld"
;; Main menu floating (default = 0)
;; A floating menu stays visible even if you scroll down a web page.
;; They're animated, so they move up and down as you scroll the browser window up or down.
; mainmenu_floating = 1
;; As many days to show those Jobs that are completed with errors (default = 7)
;; Jobs with errors (last NN day(s)
; days_to_show_jobs_with_errors = 7
;; Show human readable short Job description instead of Bacula Job names (default = 0)
; avaliable optins : 0 | 1 | 2
; 0 - only show Bacula Job Name (behavior as in earlier versions)
; 1 - only show human readable short Job description instead of Bacula Job Name
; 2 - show both
; show_job_description = 0
; Normally, you will specify only one Restore job in bacula-dir.conf.
; However, if it is not so, if you have multiple (exact - more than one) Restore Job resources
; put Restore Job names from bacula-dir.conf here.
; IMPORTANT!!! Restore Job names should be specified in the same order as in bacula-dir.conf!
; bacula_restore_job[] = "restore"
; bacula_restore_job[] = "Restore_Files_1"
; bacula_restore_job[] = "Restore_Files_2"
; and so on.
[timeline]
;; will be used when the system font by default
; gdfontpath = "/usr/share/fonts/dejavu"
; fontname = "DejaVuLGCSansMono"
fontsize = 10
[webacula]
email.to_admin = root@localhost
email.from = webacula@localhost
[feed]
feed_title = "My Bacula backup server #1"
feed_desc = "Description feed here"
[layout]
;; available values : "default"
path = "default"
cat /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="MY_MYSQL_ROOT_PASSWORD"
# Webacula web interface settings
#
# Built-in superuser login is 'root'
#
# CHANGE_THIS
webacula_root_pwd="test"
cd /var/www/webacula/install/MySql
sh 10_make_tables.sh
sh 20_acl_make_tables.sh
cat /etc/apache2/sites-available/webacula
<VirtualHost *:80>
ServerAdmin webacula@localhost
ServerName webacula
DocumentRoot /var/www/webacula
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/webacula/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Include /var/www/webacula/install/apache/webacula.conf
ErrorLog /var/log/apache2/webacula.log
LogLevel warn
CustomLog /var/log/apache2/webacula.access.log combined
</VirtualHost>
cat /var/www/webacula/install/apache/webacula.conf
#
# 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/html
<Directory /var/www/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
#
# change the settings below
#
# Allow from <your network>
</Directory>
<Directory /var/www/webacula/docs>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/application>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/languages>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/library>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/install>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/tests>
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/webacula/data>
Order deny,allow
Deny from all
</Directory>
#
# test mod_rewrite
#
<Directory /var/www/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>
a2enmod rewrite
a2ensite webacula
ln -s /usr/share/php/libzend-framework-php/Zend/ /var/www/webacula/library/Zend
chown www-data:www-data -R /var/www/webacula
/etc/init.d/apache2 restart
Is anyone know what's the problem because when I want to see the webacula main web page(
http://127.0.0.1/webacula/), Chromium give me this error:
Error HTTP 500 (Internal Server Error).
Thanks a lot!
*Maybe it will help someone at the same time as me!
*