Thanks guys. Still new at linux.
ran
sudo apt-get install php5
and got another error about stuff missing. So went to the package manager and selected libapache2-mod-php5
It said that to install that something else had to be uninstalled which I accepted. The install completed fine.
I ran the fog install again and it worked perfectly.
Yeehaa
Thank guys.
(Sorry about lack of detail, but power is out so am on my Samsung i9000)