One way to confirm if PHP is working properly or not do the following:
- Create a file called phpinfo.php
Type the following in this file
<?php
phpinfo();
?>
Save it.
Call your browser eg: http://localhost/phpinfo.php
If you can get a php page, Presto! You are done with it.
If not, you there is some error and try troubleshooting in httpd.conf if not restart your apache.
Regards,