You haven't added the correct extension to Apache possibly? Hence it doesn't recognise it as a php format and parse it correctly, and instead outputs the code straight to screen.
Update : MIME type needs to be handled and the directory needs to know that it can use index.php files.
Look for the following sections :
<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
<IfModule mod_dir.c>
DirectoryIndex at_domains_index.html index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi index.cfm
</IfModule>
You also must make sure you have the following :
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
And you will also require something like this in your vhosts section :
<Directory "/home/httpd/vhosts">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>
________
BONG
Recent comments
15 hours 48 min ago
20 hours 53 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 5 hours ago
2 days 5 hours ago
2 days 7 hours ago