If the page is loading and giving an error message then PHP must be working. It is more likely that MySQL is not running either that, or you need to specify the host where the server is running - usually localhost
Both are apparently running. I used the top command to see if mysqld was running and it is. I reinstalled mysql last night and will reinstall php tonight.
I'm running RedHat6.2 and PHP4.0.0 I'll let you know if a reinstall works or not. Will reinstalling PHP affect my apache server or should it be OK.