Installing Nextcloud on my Oracle ARM Webserver gives Internal Server Error

I am trying to setup Nextcloud on my Oracle ARM based webserver on Oracle running aaPanel as the web control panel and every time I try I get the following Error.

Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.

I am using PHP 8 and am using Cloudflare but get the same error with the proxy turned off.

Any help will be appreciated as I have tried looking at the log and cant find anything that lets me know what the issues is unless there is a log somewhere else I am not seeing.

As a side note I am also testing and comparing with ownCloud and that was able to install and work without issues but I want the larger amount of addons for Nextcloud.

Here is the contents of nextcloud.log

{“reqId”:“UNgHZSKDymbZNIz1fcXu”,“level”:3,“time”:“2022-04-17T17:26:31+00:00”,“remoteAddr”:“172.69.79.206”,“user”:"–",“app”:“index”,“method”:“POST”,“url”:"/index.php",“message”:“Call to undefined function OC\Http\Client\dns_get_record()”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/100.0.1185.44”,“version”:“23.0.3.2”,“exception”:{“Exception”:“Error”,“Message”:“Call to undefined function OC\Http\Client\dns_get_record()”,“Code”:0,“Trace”:[{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Http/Client/DnsPinMiddleware.php",“line”:74,“function”:“soaRecord”,“class”:“OC\Http\Client\DnsPinMiddleware”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Http/Client/DnsPinMiddleware.php",“line”:128,“function”:“dnsResolve”,“class”:“OC\Http\Client\DnsPinMiddleware”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php",“line”:35,“function”:“OC\Http\Client\{closure}”,“class”:“OC\Http\Client\DnsPinMiddleware”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/Middleware.php",“line”:31,“function”:"__invoke",“class”:“GuzzleHttp\PrepareBodyMiddleware”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php",“line”:71,“function”:“GuzzleHttp\{closure}”,“class”:“GuzzleHttp\Middleware”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/Middleware.php",“line”:63,“function”:"__invoke",“class”:“GuzzleHttp\RedirectMiddleware”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php",“line”:75,“function”:“GuzzleHttp\{closure}”,“class”:“GuzzleHttp\Middleware”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/Client.php",“line”:331,“function”:"__invoke",“class”:“GuzzleHttp\HandlerStack”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/Client.php",“line”:168,“function”:“transfer”,“class”:“GuzzleHttp\Client”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/3rdparty/guzzlehttp/guzzle/src/Client.php",“line”:187,“function”:“requestAsync”,“class”:“GuzzleHttp\Client”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Http/Client/Client.php",“line”:223,“function”:“request”,“class”:“GuzzleHttp\Client”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/App/AppStore/Fetcher/Fetcher.php",“line”:120,“function”:“get”,“class”:“OC\Http\Client\Client”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/App/AppStore/Fetcher/AppFetcher.php",“line”:87,“function”:“fetch”,“class”:“OC\App\AppStore\Fetcher\Fetcher”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/App/AppStore/Fetcher/Fetcher.php",“line”:192,“function”:“fetch”,“class”:“OC\App\AppStore\Fetcher\AppFetcher”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/App/AppStore/Fetcher/AppFetcher.php",“line”:186,“function”:“get”,“class”:“OC\App\AppStore\Fetcher\Fetcher”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Installer.php",“line”:230,“function”:“get”,“class”:“OC\App\AppStore\Fetcher\AppFetcher”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Installer.php",“line”:531,“function”:“downloadApp”,“class”:“OC\Installer”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Setup.php",“line”:410,“function”:“installAppBundle”,“class”:“OC\Installer”,“type”:"->"},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/core/Controller/SetupController.php",“line”:74,“function”:“install”,“class”:“OC\Setup”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/base.php",“line”:939,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/www/wwwroot/nextcloud.jamiebode.co.uk/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/www/wwwroot/nextcloud.jamiebode.co.uk/lib/private/Http/Client/DnsPinMiddleware.php",“Line”:57,“CustomMessage”:"–"}}