- Run test.php from your web browser.
It should produce output that looks like:
Checking system for dependencies...
Checking gettext: YES Language support enabled
Checking Pear(DB): YES Pear DB enabled
Checking GD: YES GD support enabled
Please, click the link below to test your graph system capabilities
(Bacula-web only use PNG): Test
- If gettext, Pear(DB) and GD all indicate yes, then things are going
in the right direction. If not, you should correct each one before
proceeding.
- If Pear(DB) is not installed and you have PHP 4.3.11 or newer, you
can use the command:
pear install DB
to install it.
After installing it, check by doing:
pear list
On my machine (Kern), I get:
Installed packages:
===================
Package Version State
Archive_Tar 1.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
HTML_Template_IT 1.1 stable
HTTP 1.3.5 stable
Mail 1.1.4 stable
Net_SMTP 1.2.6 stable
Net_Socket 1.0.6 stable
Net_UserAgent_Detect 2.0.1 stable
PEAR 1.3.5 stable
XML_Parser 1.2.6 stable
XML_RPC 1.4.0 stable
- When everything is installed, click on the Test link at the
bottom, which will bring up a new page with a number of PHPlot test graphs,
using GD. It should be pretty obvious if they work, if not, you must
correct the problems.
- If your graphs are not being reproduced, check that your PHP was built
with the --with-gd option, and possibly with --with-png-dir=DIR
where DIR is the path to the libpng installation directory.
- One of the most common problem is improper configuration of the
variables in bacula.config that define the database. If you see
nothing but a blank screen or error messages, please recheck your database
definitions paying careful attention to ensure that the database name and
password are correct and that the database engine is running.
- If you get an error such as DB Error: not found assuming your
database is MySQL, try using the following command:
mysql -h<host> -u<login> -p <db_name>
where, <host>, <login>, and <db_name> are
the values you put in your bacula.conf file under the
DATABASE section as in:
[.DATABASE]
host = 192.168.1.120
login = bacula-user
pass =
db_name = bacula
db_type = mysql
in this case, the mysql command would be:
mysql -h192.168.1.120 -ubacula-user -p bacula
- If you get an error such as DB Error: connection failed assuming your
database is PostgreSQL, make sure that TCP/IP-Connections to your
bacula database are allowed via pg_hba.conf.
- If nothing seems to be working and you are using SELinix, please
remember that you must have the correct contexts for the bacula-web
files. Assuming you have installed the files in
/var/www/html/bacula-web, you can most likely fix the contexts with
a command such as:
chcon -t httpd_sys_content_t /var/www/html/bacula-web/ -R