@George Upgrading from 8 to 10 is quite a step. Probably something we have not tested. Please take a look at the settings file in /opt/fog/.fogsettings - find the line starting with packages=… and remove that from the file (good idea to make a backup copy of the file before you do this). Then re-run the installer.
Thank you that solved the issue. I had to remove also from apache the php5.conf and php5.load and everything now is up and running.