Apache
Per Linux distributions
On RedHat / Centos / Fedora
Install Apache web server on rpm based Linux distribution like Red Hat, Centos, Fedora, SUSE Linux, Scientific Linux, etc.
$ sudo yum install httpd
$ sudo chkconfig httpd on
$ sudo service httpd start
On latest Red Hat, Centos, Fedora, etc. systems, note the changes below
- On Fedora, yum has been replaced by
dnf
- On Red Hat, Centos, Fedora, etc,
service
andchkfconfig
command has been replaced bysystemctl
On Debian / Ubuntu / Linux Mint
Install Apache
$ sudo apt-get install apache2 libapache2-mod-php
On Gentoo
Enable Apache to the default runlevel
$ sudo rc-update add apache2 default
Then restart Apache
$ sudo /etc/init.d/apache2 restart
On FreeBSD
A big thanks to Dean E. Weimer who provided me Bacula-Web installation instructions for *BSD setup
You can start with a fresh FreeBSD 9.0 installation, with ports from original CD media, not updated to keep as simple as possible.
Modify /etc/make.conf
(might not exist yet)
WITHOUT_X11=yes
This is done to keep the graphics/php-gd
port from installing extra stuff for X, not having it will not stop anything from working.
Install required ports
Here's below a list of FreeBSD ports you need to install
databases/postgresql91-server
sysutils/bacula-client
www/apache22
lang/php5
www/php5-session
devel/php5-gettext
With PostgreSQL bacula catalog
databases/php5-pdo_pgsql
databases/php5-pgsql
With MySQL bacula catalog
databases/php5-mysql
databases/php5-pdo_mysql
With SQLite bacula catalog
databases/php5-sqlite
databases/php5-pdo_sqlite
Instructions above are outdated, for more accurate instructions, please look at the Bacula-Web port on FreshPorts.org
Apache configuration
Ensure that the Apache mod_rewrite module is installed and enabled.
In order to enable mod_rewrite you can type the following command
$ sudo a2enmod rewrite
Apache virtualhost
In order to secure the application folder and avoid exposing sensitive information contained in Bacula-Web configuration.
Edit the Apache configuration file as described below
- For Red Hat / Centos / Fedora
- For Debian / Ubuntu
$ sudo vim /etc/httpd/conf.d/bacula-web.conf
$ sudo vim /etc/apache2/sites-available/bacula-web.conf
with the content below
<VirtualHost *:80>
DocumentRoot "/var/www/html/bacula-web/public"
ServerName bacula-web.domain.com
<Directory /var/www/html/bacula-web/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# More directives here ...
</VirtualHost>
You might need to adapt Bacula-Web installation path in the above configuration according to your setup
As of version 8.6.0, the DocumentRoot must be set to the public
sub-folder.
Enable the configuration
$ sudo a2ensite bacula-web
Then restart Apache to apply the configuration change
- For Red Hat / Centos / Fedora
- For Debian / Ubuntu
$ sudo systemctl restart httpd
$ sudo systemctl restart apache2
You can now proceed with the installation using Composer