Monday, July 20, 2009

When PHP code showing on your Site (mod_php).

If you compile apache but php is not Support, Here are the relevant lines from my httpd.conf file


AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps


AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps

The following is for PHP3:

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

The following is for PHP/FI (PHP2):

AddType application/x-httpd-php .phtml

0 comments: