@Wayne-Workman I think he had missing packages.
So I removed all the php packages and libapache-mod-php packages.
Then I re-ran the installer after removing the packages line from the /opt/fog/.fogsettings file.
once that was done all worked properly.