Does your Server know, how to handle ".php"?
Apache-Config (httpd.conf)
find the following section and edit it to:
#
DirectoryIndex: Name of the file or files to use as a pre-written HTML
directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.htm index.html index.php default.htm default.html default.php
</IfModule>
Check this section or add it, if it not exists:
#
# PHP 4.x:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
After altering the conf, you have to restart the Webserver:
killall -HUP httpd
or killall -HUP apache
or from /etc/init.d
./httpd restart
or ./apache restart
Create the tiny php-script testphp.php
<?php
phpinfo();
?>
Call this script from your browser.