PHP files coming up as files to download?

[email protected] (Frank DeChellis)
Newsgroups php.install
Message-ID <C57729DC.394C9%[email protected]>
Hi there,

I am new to this list.

I have Apache 1.3.41, PHP 5.2.8 running on NetBSD 4.0.1.  This install is
new.  I have Apache and PHP running on 2 other servers with no problem.

My problem is simple to explain but I have been unable to make it go away.
Whenever I access a .php file my computer pops up with a download screen
instead of displaying the desired results of the page.

This is what I have in httpd.conf:

LoadModule php5_module /usr/pkg/lib/httpd/mod_php5.so
AddModule mod_php5.c
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php

<IfModule mod_mime.c>
   
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    AddHandler php5-script .php
    AddHandler php5-script .php3

</IfModule>

Am I missing a line somewhere?

Thanks
Frank

Frank DeChellis
President, Internet Access Worldwide
Welland, Ontario, Canada
www.iaw.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.