For those who has a problem to view php file in browser, maybe you might want to try this tips. Search and add a few lines in httpd.conf file.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
This will help you to run php file in website. I do not know how can everybody not has this kind of problem while installing it in RasPi.