RE: File Download instead of script execution
| From: | Stephen Reese | Date: | Mon, 24 Mar 2003 23:56:54 +0000 |
| Subject: | RE: File Download instead of script execution | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10402@lists.php.net to get a copy of this message | ||
First off, which conf file did you use for apache 2.X
You'll notice that there are several of them in the */conf directory:
LoadModule php4_module modules/libphp4.so
DirectoryIndex index.html index.html.var index.htm index.php
AddType application/x-httpd-php .php .phtml .php3 .inc .pinc
AddType application/x-httpd-php-source .phps
# Stephen Reese
# 1204 NW 34TH ST
# Gainesville, Fl.
# sreese@prcdigital.com
-----Original Message-----
From: Tom Tsongas [mailto:tsongas@veritas.com]
Sent: Monday, March 24, 2003 5:54 PM
To: php-install@lists.php.net
Subject: File Download instead of script execution
Hey folks.
I just loaded the latest Apache (v.2.0.44) and PHP (v.4.3.1) onto my SUN
box running Solaris 8. Apache starts just fine but when I attempt to
launch a PHP script, I get a file download dialog box instead of having
the script execute.
I had Apache 1.3.20 and PHP 4.0.4 running on several systems at my
disposal and never encountered this issue before. I thought that maybe
it was the MIME setting but I have that set correctly from what I can
see:
AddType application/x-httpd-php .php
I saw some previous threads regarding the LoadModule issues but those
were Windows installs. I compiled and configured PHP to load as a static
module.
Any ideas folks?
- Tom Tsongas