Look like your webserver didn't interprete php code and simply return them 
as text page.

You need to check if you have activated the fcgid mod be sure also to have 
the following instruction set inside this module

https://docs.bareos.org/bareos-22/IntroductionAndTutorial/InstallingBareosWebui.html#id6

After that a restart of php-fpm and webserver should work.

On Wednesday, February 8, 2023 at 3:02:40 PM UTC+1 Birgit Ducarroz wrote:

> Hi,
>
> I just installed a brand new Ubuntu 22.04 with the latest Bareos Version 
> and the webui.
> Depending my browser, It shows this:
>
> . * */ 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(); 
>
> or this:
>
> <?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();
>
> Can someone please help me?
> Thank you a lot!
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/1818a4a1-2d78-4f62-b54b-a7cde8a77a63n%40googlegroups.com.

Reply via email to