If this is following a fresh install, you might want to try a reinstall incase the install didn't go smoothly:
/scripts/upcp --force
If that doesn't help, check your Apache config in /usr/local/apache/conf/httpd.conf.
If you're using the PHP module, check that you have:
Code:
LoadModule php4_module libexec/libphp4.so
near all the other LoadModule directives, or similar if you are using PHP5 (somewhere near the top of the config!). If you are using phpsuexec (i.e. CGI mode and not module), ensure that this line is commented out if present.
Check also that Apache has the correct handlers. If it hasn't been told to parse PHP scripts with anything, it won't! In my config I have:
Code:
AddHandler application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
Action application/x-httpd-php5 "/cgi-sys/php5"
AddType application/x-httpd-php5 .php5
It is likely to be different for you unless you are running both PHP4 and PHP5 - check what PHP version(s) you are running and check that the config is right for you.
You should fine the handlers loitering around somewhere inside the <IfModule mod_mime.c> directive (or at least I do).