NC 20 Cannot access webui

So I was updating Nextcloud from 20.0.2 to 20.0.4 and the installer froze midway and now I can no longer access the webui to configure anything.

I am running php7.4 and when the system starts up I get some php errors I do believe this to be an issue with php. I have tried and reinstalled PHP in the jail and made sure smbclient and imagick got reinstalled and thats when those errors started showing. I was already talking with someone on reddit so this might give [some more info] also here is the post I made on reddit describing the issue
(https://www.reddit.com/r/NextCloud/comments/kfyr70/cannot_log_in_after_upgrade_to_nextcloud_2004/)

I am running nextcloud on TrueNAS Core v12.0 (FreeBSD)

Logs

The php errors are absolutely precise, so make sure that you install and configure the required php-imagick, php-smbclient etc. modules to fix the problem.

I am not really sure what needs to be configured or installed is there a list that you can like and a guide aswell.

PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘curl.so’ (tried: /usr/local/lib/php/20190902/curl.so (Shared object “libnghttp2.so.14” not found, required by “libcurl.so.4”), /usr/local/lib/php/20190902/curl.so.so (Cannot open “/usr/local/lib/php/20190902/curl.so.so”)) in Unknown on line 0
[20-Dec-2020 19:52:35] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘gd.so’ (tried: /usr/local/lib/php/20190902/gd.so (Shared object “libpng16.so.16” not found, required by “libgd.so.6”), /usr/local/lib/php/20190902/gd.so.so (Cannot open “/usr/local/lib/php/20190902/gd.so.so”)) in Unknown on line 0
[20-Dec-2020 19:52:35] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘smbclient.so’ (tried: /usr/local/lib/php/20190902/smbclient.so (Shared object “libsmbclient.so.0” not found, required by “smbclient.so”), /usr/local/lib/php/20190902/smbclient.so.so (Cannot open “/usr/local/lib/php/20190902/smbclient.so.so”)) in Unknown on line 0

Installation on Linux — Nextcloud latest Administration Manual latest documentation