Re: apache2 php4 - browser showing source ??
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: apache2 php4 - browser showing source ??

From: Andy Hassall <andy@andyh.co.uk>
Date: Thu Jul 28 2005 - 21:04:34 CEST

On 28 Jul 2005 10:52:09 -0700, news8080@yahoo.com wrote:

># grep php /usr/local/apache2/conf/httpd.conf
>LoadModule php4_module modules/libphp4.so
>DirectoryIndex index.html index.html.var index.php
>AddHandler php4-script php
>AddType text/html php
>AddType application/x-httpd-php .php .phtml

 You've got three conflicting settings here - is php text/html,
application/x-httpd-php, or handled by php4-script?

 The final one is the typical one for PHP an Apache module (the usual and
recommended config). I'd remove the others, although since this is the output
of grep it's out of context so it depends on what else is in that configuration
file.

-- 
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Received on Mon Oct 17 21:22:03 2005