Upgraded server - PHP not working

asai

New member
Hi,

I upgraded my server today from Ubuntu 20.04 to 22.04.
Almost all went well, however php is not working anymore.
When I open a php webpage its only showing the code.
Example, phpmyadmin:

Code:
<?php

declare(strict_types=1);

use PhpMyAdmin\Routing;

if (! defined('ROOT_PATH')) {
    // phpcs:disable PSR1.Files.SideEffects
    define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
    // phpcs:enable
}

global $route, $containerBuilder;

require_once ROOT_PATH . 'libraries/common.inc.php';

$dispatcher = Routing::getDispatcher();
Routing::callControllerForRoute($route, $dispatcher, $containerBuilder);

What could be missing from the upgrade og PHP installation?
 
Back
Top