David Huby’s Blog Technical and business stuff

1Mar/090

Apache displaying PHP source – update httpd.conf

If Apache is displaying the source of your PHP files, try adding something similar to your MIME module in httpd.conf:

Note - this refers to PHP5 & Apache 2.2. Ensure you are using the correct binary (php5apache2_2.dll) for your php / apache combination.

LoadModule php5_module "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\php5apache2_2.dll"

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

AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt
Filed under: Sysadmin Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.