Install using Composer
Since version 8.0.0, Bacula-Web dependencies are managed using Composer.
As stated on Composer's official website.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on, and it will manage (install/update) them for you.
Let's start by installing Composer on your system
Install Composer
Most Linux distro provides Composer as package, so to install it run this command
- For Red Hat / Centos / Fedora
- For Debian / Ubuntu
$ sudo yum install composer
$ sudo apt-get install composer
If your distro doesn't provide Composer package, Composer website contains all information you can install it manually as explained on this page.
Make sure you're using latest Composer version. Please have a look at Packagist.com website.
Install with Composer
From your $HOME folder, run the command below
$ composer create-project --no-dev --prefer-dist bacula-web/bacula-web bacula-web
Once done, you can check Bacula-Web installation by running the command below
$ cd bacula-web && composer check
Checking platform requirements for packages in the vendor dir
ext-dom 20031129 success
ext-gettext 8.0.28 success
ext-json 8.0.28 success
ext-libxml 8.0.28 success
ext-mbstring * success provided by symfony/polyfill-mbstring
ext-openssl 8.0.28 success
ext-pcre 8.0.28 success
ext-pdo 8.0.28 success
ext-phar 8.0.28 success
ext-posix 8.0.28 success
ext-simplexml 8.0.28 success
ext-sqlite3 8.0.28 success
ext-tokenizer 8.0.28 success
ext-xml 8.0.28 success
ext-xmlwriter 8.0.28 success
php 8.0.28 success
Fix files/folders ownership and permissions
Move the folder in the web server folder
$ sudo mv -v bacula-web /var/www/
Follow instructions to set permissions and ownership in your Bacula-Web folder.
Once you're done, please proceed to the configuration of Bacula-Web.