How to configuraing Bacula with Webmin on Ubuntu 16.04 ?

May 18, 2017 11.3k views
Open Source Ubuntu 16.04

Hi everyone,

I'm trying to configure Bacula and connect it to Webmin to manage my backup jobs graphically, I have installed and configured bacula and webmin successfully, but when I click on "Bacula backup system" on webmin , it returns this error:
Failed to connect to the Bacula database : Failed to load the database DBI driver mysql at ./ line 45. Maybe it is not set up, or the module configuration is incorrect.
However, I've selected the bacula module configuration as follow:

  1. Database Type : Mysql
  2. User to login to database : bacula
  3. Password to login with : <mypasswrd> Other options are in default states. Could you please help me to solve this problem ?
3 Answers

To fix go to Webmin -> Others -> Perl Modules, and install the DBD::mysql Perl module, or just install all suggested modules.

If any libwrap error, then run from bash sudo apt-get install libwrap0 libwrap0-dev

Then try install again in webmin

In the webmin, Select others->Perl Modules-> suggested modules install DBD::mysql. This works for me.

I'm using Ubuntu 16.04.4 LTS and for me the fix was:

sudo apt-get install libdbd-mysql-perl
Have another answer? Share your knowledge.