PHP is either a module to apache or it is a cgi. If it is a module, it has to be loaded into apache in the apache configuration. If it is installed as a cgi, you just tell each of your scripts where the php binary is located. I'd recommend you reinstall your database, php, and apache from scratch so you know where everything is setup and how it is all setup.