Hav a look at https://help.ubuntu.com/community/ApacheMySQLPHP
Does your browser ask if you want to download the php file instead of displaying it? If Apache is not actually parsing the php after you restarted it, install libapache2-mod-php4.[ED: I think this should be -php5 if you have php5 installed] It is installed when you install the php4 package, but may have been removed inadvertently by packages which need to run a different version of php.
You may also need to actually enable it, by doing sudo a2enmod php4 [ED; ?php5]followed by sudo /etc/init.d/apache2 restart. If sudo a2enmod php4 [?5]returns "$ This module does not exist!", you should purge (not just remove) the libapache2-mod-php5 package and reinstall it.
Be sure to clear your browser's cache before testing your site again.
Bookmarks