# Question - Community install, PHP error

**URL:** https://discussions.eramba.org/t/question-community-install-php-error/3414
**Category:** Forum - Installation
**Created:** [August 3, 2023, 12:52pm UTC](https://discussions.eramba.org/t/question-community-install-php-error/3414 "2023-08-03T12:52:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![amit.kumar](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@amit.kumar](https://discussions.eramba.org/u/amit.kumar)
#### Post date: [August 3, 2023, 12:52pm UTC](https://discussions.eramba.org/t/question-community-install-php-error/3414/1 "2023-08-03T12:52:33Z")

</div>

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());

---

<div class="post-metadata">

### Author: ![david.schroth](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@david.schroth](https://discussions.eramba.org/u/david.schroth)
#### Post date: [August 3, 2023, 2:01pm UTC](https://discussions.eramba.org/t/question-community-install-php-error/3414/2 "2023-08-03T14:01:29Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![sam](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://discussions.eramba.org/u/sam)
#### Post date: [August 3, 2023, 3:04pm UTC](https://discussions.eramba.org/t/question-community-install-php-error/3414/3 "2023-08-03T15:04:15Z")

</div>

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.

> [@Php8.2 update - "source code" installs](https://discussions.eramba.org/t/php8-2-update-source-code-installs/3093):
>
> This guide is only for customers running old “source code” installations. For those running dockerised version use this guide: [Php8.2 update - dockerised version](https://discussions.eramba.org/t/php8-2-update-dockerised-version/3108)Installing PHP 8.2 on Ubuntu 22.04 1. Run system updates $ apt update && apt upgrade -y 2. Add Ondrey sury PPA repository $ add-apt-repository ppa:ondrej/php 3. Update repositories again $ apt update 4. Install PHP 8.2 and all modules needed for eramba $ apt install php8.2 php8.2-mysql php8.2-intl php8.2-curl php8.2-mbstring p…

---

<div class="post-metadata">

### Author: ![amit.kumar](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@amit.kumar](https://discussions.eramba.org/u/amit.kumar)
#### Post date: [August 3, 2023, 4:20pm UTC](https://discussions.eramba.org/t/question-community-install-php-error/3414/4 "2023-08-03T16:20:50Z")

</div>

Hello Sam,

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

still getting same error.

---

<div class="post-metadata">

### Author: ![steelem](https://discussions.eramba.org/user_avatar/discussions.eramba.org/steelem/32/2053_2.png) [@steelem](https://discussions.eramba.org/u/steelem)
#### Post date: [August 3, 2023, 5:51pm UTC](https://discussions.eramba.org/t/question-community-install-php-error/3414/5 "2023-08-03T17:51:39Z")

</div>

> [@amit.kumar](#):
>
> Question- PHP 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.
