New user. Can't get webui to work.

86 views
Skip to first unread message

Tristan Peltenburg

unread,
Mar 10, 2023, 8:28:59 AM3/10/23
to bareos-users
Hi all,

As stated in the title and I cannot for the life of me figure out how to get the webui working.
I am running Debian 11. Bareos itself is running fine, and working as expected.

However when I install 'bareos-webui' I am only presented with the following code when I go to http://host/bareos-webui/. I've installed through official repository. Can anyone point me in a direction? Thanks!

<?php
/**
 *
 * bareos-webui - Bareos Web-Frontend
 *
 * @link      https://github.com/bareos/bareos for the canonical source repository
 * @copyright Copyright (c) 2013-2019 Bareos GmbH & Co. KG (http://www.bareos.org/)
 * @license   GNU Affero General Public License (http://www.gnu.org/licenses/)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

if(isset($_SERVER['APPLICATION_ENV']) && $_SERVER['APPLICATION_ENV'] == 'development') {
   error_reporting(E_ALL);
   ini_set("display_errors", 1);
   define('REQUEST_MICROTIME', microtime(true));
}

/**
 * This makes our life easier when dealing with paths. Everything is relative
 * to the application root now.
 */
chdir(dirname(__DIR__));

// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
    return false;
}

// Setup autoloading
require 'init_autoloader.php';

// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();

servidores pap

unread,
Mar 10, 2023, 9:43:07 AM3/10/23
to bareos-users
sudo apt install php
sudo apt install libapache2-mod-php
sudo systemctl restart apache2

Tristan Peltenburg

unread,
Mar 10, 2023, 9:45:17 AM3/10/23
to bareos-users
Yeah I did that.
But now I get 503 Service Unavailable.... 

Thanks

Franz Bertin

unread,
Mar 10, 2023, 10:49:09 AM3/10/23
to servidores pap, bareos-users

On Debian, I've done

apt-get install bareos-webui
apt-get install libapache2-mod-php7.4

systemctl reload apache2
systemctl restart apache2

and it was ok

Regards

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/b9d35983-7f5e-4c72-b996-1818f812cfe7n%40googlegroups.com.


--

Franz

Bruno Friedmann

unread,
Mar 11, 2023, 11:57:50 AM3/11/23
to bareos-users
Normally you don't have to install mod-php as with version 22 the webui is now relying on php-fpm which of course need to be installed.

After trying several time the process described on the documentation bareos-webui on debian 11 always work.
But yeah that's documentation you need to read and apply :-)

Tristan Peltenburg

unread,
Mar 13, 2023, 10:01:42 AM3/13/23
to bareos-users
I got it working on CentOS!
No luck on Debian, but CentOS is also fine for me.

Thanks guys!

Andreas Rogge

unread,
Mar 16, 2023, 7:29:24 AM3/16/23
to bareos...@googlegroups.com
It seems like you need to manually enable php-fpm in Debian/Ubuntu after
you installed it.
When I tested with Ubuntu 22.04, running "a2enconf php8.1-fpm" followed
by "systemctl reload apache2" solved the issue.

Best Regards,
Andreas

--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages