@echophi The FOG installer will take care of package installs for you and it will error out if it’s unable to install the correct packages. Please run dpkg -l | grep php to see what you have still left installed.

I would suggest you just re-run the FOG installer and let us know to what point it runs.