What are the extensions on the scripts that are failing? If they are .html or something other than .php, chances are that you do not have those extensions set for PHP parsing.
This is an example of how to edit httpd.conf in Apache to make .html files parsed as PHP:
adds HTML for PHP parsing
AddType application/x-httpd-php .html