I am trying to migrate over to a lightsail instance. I use the mailwizz backup plugin which copies the files and the database to my s3 bucket. Using the following link below https://www.mailwizz.com/kb/migrating-mailwizz-to-a-new-server/ I was able to to migrate it to a proxmox vm with ubuntu 20.14 (PHP 7.4.3) as a test and had no issues.
With the same backup file I went to lightsail and created an instance. I chose a lamp server with php8 as shown below:


After all is said and done I get the following error when i visit the page.

I tried it two times using the same lightsail setup then deployed an EC2 instance for a total of 3 attempts and got the same result.
Could it be because of the php8?
With the same backup file I went to lightsail and created an instance. I chose a lamp server with php8 as shown below:


After all is said and done I get the following error when i visit the page.

I tried it two times using the same lightsail setup then deployed an EC2 instance for a total of 3 attempts and got the same result.
Could it be because of the php8?
Code:
PHP 8.2.12 (cli) (built: Nov 11 2023 18:25:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
with Zend OPcache v8.2.12, Copyright (c), by Zend Technologies