Op 24/05/2011 9:44, Mark Maas schreef:
On 05/24/2011 08:35 AM, Robert Kromoser wrote:
Hi folks.
I have still problem in installing bweb.
Can anyone give me a detail installation instruction to bweb.
I also need assistant in adding bweb into Apache.
I use CentOS 5.5, Apache 2.2.3, Mysql 5.0.77.
I think bweb is no longer actively developed. You should try webacula
instead.
Thanks,
Mark
From what I know Eric is still fixing bugs and adding stuff to bweb,
just check the repository for bweb commits.
To get everything working (including file restoration with bresto.pl) I
do the following:
1. Make sure you have all necessary perl libraries installed, as
listed in the INSTALL doc. How to check this is also described there.
- DBI (with mysql: DBD::mysql)
- GD::Graph
- GD
- HTML::Template
- CGI
- Expect
- Time::ParseDate
- Date::Calc
2. Add all necessary tables etc into the bacula database with the
bweb-mysql.sql file provided. (script folder)
Command is something like "mysql -u bacula -p bacula <
/path/to/bweb-mysql.sql"
3. Put the bweb perl library files under
/usr/lib/perl5/site_perl/5.8.5/ - change dir if you have another
perl version (all files from lib folder go here, 5x .pm)
Chmod everything 644, owner and group root is fine.
4. Dunno if it's strictly necessary, but I have a .packlist file with
the following contents:
/usr/lib/perl5/site_perl/5.8.5/Bconsole.pm
/usr/lib/perl5/site_perl/5.8.5/Bweb.pm
/usr/lib/perl5/site_perl/5.8.5/CCircle.pm
/usr/lib/perl5/site_perl/5.8.5/GBalloon.pm
/usr/lib/perl5/site_perl/5.8.5/GTime.pm
The .packlist file is located under
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Bweb,
chmod 644 owner/group root.
5. I'm guessing your web dir should be /var/www/html, so make a
subdir bweb there. Copy everything from the html dir there.
Chmod 755, user/group root.
6. For bresto to work you'll need the ext-js stuff. Download version
2.2 (later should work too) from http://www.sencha.com/ and
extract it to a folder /var/www/html/bweb/ext
7. Make a subdir bweb in /var/www/cgi-bin and copy everything from
the cgi dir there. (all .pl files)
Chmod 755, user/group root
8. Make a dir /usr/share/bweb/tpl/en and put everything from the
lang/en/tpl dir there.
Chmod 755, user/group root
9. Create a spool dir /var/spool/bweb, chmod it 0700, owner apache,
group root.
10. Create a file bweb.conf under /etc/httpd.conf.d with the following
contents:
# bweb (bacula web-admin and statistics tool)
# Apache config bweb.conf
ScriptAlias /cgi-bin/bweb /var/www/cgi-bin/bweb
<Directory /var/www/cgi-bin/bweb>
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
AuthType Basic
AuthName Bweb
AuthUserFile /etc/bacula/.htpasswd
Require valid-user
AllowOverride None
</Directory>
Alias /bweb/fv /var/spool/bweb
<Directory "/var/spool/bweb">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Alias /bweb /var/www/html/bweb
<Directory "/var/www/html/bweb">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Chmod 644, owner/group apache. The "same" file is also present in
the script dir with some extra info. You'll have to change the
paths to reflect your centos dir tree if you use it tho!
11. If you want to password protect it, make a .htpasswd file and put
it in /etc/bacula for example (change location in config file
above). Read up on this via google ^^ Should work without it if
you comment the Auth and Require stuff in the config above.
Chmod 640, user apache, group root.
12. Create a bweb.conf file in /etc/bacula, chmod 640, owner apache,
group root. Contents:
$VAR1 = bless( {
'enable_security' => 0,
'graph_font' =>
'/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf',
'config_file' => '/etc/bacula/bweb.conf',
'password' => 'mysqlpass',
'dbi' => 'DBI:mysql:database=bacula',
'user' => 'bacula',
'debug' => 0,
'error' => '',
'achs' => [],
'stat_job_table' => 'Job',
'display_log_time' => 0,
'lang' => 'en',
'wiki_url' => '',
'name' => undef,
'bconsole' => 'sudo /usr/sbin/bconsole -n -c
/etc/bacula/bconsole.conf',
'ach_list' => {},
'fv_write_path' => '/var/spool/bweb',
'template_dir' => '/usr/share/bweb/tpl',
'enable_security_acl' => 0,
'email_media' => 'ad...@domain.be',
'default_age' => '7d'
}, 'Bweb::Config' );
Change the password to the mysql password for the bacula user. You
can add a lot more stuff here, but you can do that from bweb
itself. If needed, change the font line or install the Vera.ttf font.
13. Add a RunAfterJob to your catalog backup for
"/var/www/cgi-bin/bresto.pl action=batch". Also run this once
manually after bweb works. This is necessary to get the bfileview
part to work.
14. Lastly, add a line to the sudoers file:
apache ALL = NOPASSWD: /usr/sbin/bconsole
15. Restart apache (service httpd restart) and pray it works :)
Might've forgotten something, but this should be enough I think. If
something doesn't work, try changing permissions etc.
Regards,
Jeremy
**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users