Whoops when trying to browse to GUI /admin/config.php

Hi,
FreePBX v17

After I

  1. reboot FreePBX from the Power Management
  2. login with ssh and issuing ‘reboot now’.
  3. cycle power on the computer FreePBX is installed.

I receive the following error when trying to browse to …/admin/config.php

I can recover by, ssh and login to the server and run this command
systemctl restart apache2.service

After the command complete, the FreePBX login page is shown and all works well.
I have tried these commands, which have not fixed the problem
apt update
apt upgrade
fwconsole ma upgradeall

How do I fix FreePBX so that apache2 starts running correctly after boot?

Thank you,