Question - Community install, PHP error

Question- PHP error

Hello team,

I have updated the OS version from Ubuntu 20 to 22. after sucessfully upgradation my eramba service is not working.
i am getting below mentioned error.on gui login page.

please help me to fix it.

Do let me know if something i missing after upgradation or if eramba is not compatible with ubuntu 22.

<?php /** * The Front Controller for handling every request * * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * @link https://cakephp.org CakePHP(tm) Project * @since 0.2.9 * @license MIT License (https://opensource.org/licenses/mit-license.php) */ // Check platform requirements require dirname(__DIR__) . '/config/requirements.php'; // For built-in server if (PHP_SAPI === 'cli-server') { $_SERVER['PHP_SELF'] = '/' . basename(__FILE__); $url = parse_url(urldecode($_SERVER['REQUEST_URI'])); $file = __DIR__ . $url['path']; if (strpos($url['path'], '..') === false && strpos($url['path'], '.') !== false && is_file($file)) { return false; } } require dirname(__DIR__) . '/vendor/autoload.php'; use App\Application; use Cake\Http\Server; // Bind your application to the server. $server = new Server(new Application(dirname(__DIR__) . '/config')); // Run the request/response through the application and emit the response. $server->emit($server->run());

You’ll need to select the right repo for PHP for your Ubuntu version, install it, then install PHP again. When you upgrade in place with Ubuntu, I’ve found it doesn’t always upgrade PHP…

Hello,

My bet would be that you are missing some of the PHP modules, please see our post how to update PHP, there are all PHP modules listed.

Hello Sam,

I have upgraded the PHP version sucessfully but it did not work for me.

still getting same error.

If you are seeing that content in the web page, then it means that your web server is not processing PHP, but is instead serving PHP files as text rather than executing it and showing you the results.