Linux Newbie Question

73 views
Skip to first unread message

Google SBHT

unread,
May 12, 2022, 1:45:47 PM5/12/22
to bacularis
I have gone through the documentation and have configured Bacula on Ubunta 20.04 and was able to successfully complete a test backup. 
I went through the Bacularis install with Apache Web Server installed using Composer. The install seemed to work all the way through except I seem to be missing something on the Web Configuration. 
I moved the bacularis-apache.conf to /etc/apache2/conf-available and ran a2enconf and also put it in sites-available and ran a2ensite. 
I can access the default Apache site however when I run http://localhost:9097 from the Ubuntu server with Firefox I get a page with run();?> 
When I run it from from Edge using the IP address:9097 I get
<?php /* * Bacularis - Bacula web interface * * Copyright (C) 2021 Marcin Haba * * The main author of Bacularis is Marcin Haba, with contributors, whose * full list can be found in the AUTHORS file. * * Bacula(R) - The Network Backup Solution * Baculum - Bacula web interface * * Copyright (C) 2013-2016 Kern Sibbald * * The main author of Baculum is Marcin Haba. * The original author of Bacula is Kern Sibbald, with contributions * from many others, a complete list can be found in the file AUTHORS. * * You may use this file and others of this release according to the * license defined in the LICENSE file, which includes the Affero General * Public License, v3.0 ("AGPLv3") and some additional permissions and * terms pursuant to its AGPLv3 Section 7. * * This notice must be preserved when any source code is * conveyed and/or propagated. * * Bacula(R) is a registered trademark of Kern Sibbald. */ /* * Constant is used to localize always valid document root directory * Using for placing Baculum files in document root subdirectory */ define('APPLICATION_DIRECTORY', dirname(__DIR__)); define('APPLICATION_WEBROOT', APPLICATION_DIRECTORY . '/htdocs'); define('APPLICATION_PROTECTED', APPLICATION_DIRECTORY . '/protected'); define('PRADO_VENDORDIR', APPLICATION_PROTECTED . '/vendor'); require(APPLICATION_PROTECTED . '/autoload.php'); $application = new \Prado\TApplication(APPLICATION_PROTECTED); $application->run(); ?>

What am I missing?

Thanks in advance.

Marcin Haba

unread,
May 12, 2022, 3:46:45 PM5/12/22
to bacularis
Hello,

Thanks for reporting this problem.

You need to enable PHP support in your Apache instance. For Ubuntu 20.04 it will be commands like below (for PHP 7.4):

a2enmod proxy_fcgi
a2enconf php7.4-fpm


Also please make sure that you enabled the Apache rewrite module:

a2enmod rewrite

At the end please restart the web server:

systemctl restart apache2

They are almost the same steps as for installation using DEB packages:

https://bacularis.app/doc/brief/installation.html#id3

Good luck.

Best regards,
Marcin Haba (gani)

Google SBHT

unread,
May 12, 2022, 5:29:53 PM5/12/22
to bacularis
I ran the a2enmod rpoxy_fcgi and I had already found that I needed the rewrite and had that already. 
I do not have an available config for PHP in /etc/apache2/conf-available. 
I had ran the command in the document  apt install curl patch php-cli php-bcmath php-curl php-xml php-json php-ldap php-mysql php-pdo php-pgsql php-intl and I read the note above to say that this would install the PHP requirements which I thought meant it would install PHP completely which was not correct (again newbie mistake). I installed PHP ran a2conf php 7-4 and now I have access to the portal. 

Thanks for the help.
Reply all
Reply to author
Forward
0 new messages