I have just installed PHP 4.2.2 with Apache 1.3.26 on a SGI Irix box.
When I go to the website, it begins a file download rather than bringing up the sites login screen.
Can anyone offer any insight as to the cause of this problem?
Thanks,
Direwolf
Help with apache server
Moderator: General Moderators
I've gotten this problem when the file type is not listed in the httpd.conf; for example, if you try to load a .php3 file when you have the line:in your conf file, it will prompt for a download. If this is the problem, adding .php3 to this list of file extensions will work.
Code: Select all
AddType application/x-httpd-php .php .phtml- Johnm
- Forum Contributor
- Posts: 344
- Joined: Mon May 13, 2002 12:05 pm
- Location: Michigan, USA
- Contact:
Here is that part of the httpd.conf file.
So i already had the .php3 in it. Any other ideas?
Direwolf
Code: Select all
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP3 module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php .php .php3 .html
AddType application/x-httpd-php-source .phps
#AddType application/x-ptc-part .prt, .asm, .drw, .pic, .lay, .frm, .dft, .dgm, .rep, .1, .2, .3, .4, .5, .6, .7, .8, .9,.10, .11, .12, .13, .14, .15, .16, .17, .18, .19, .20, .21, .22, .23, .24, .25, .26, .27, .28, .29, .30, .31, .32, .33, .34, .35, .36, .37, .38, .39
AddType application/x-ptc-part .1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 .12 .13 .14 .15 .16 .17 .18 .19 .20 .drw .asm .prt
AddType application/x-tcl .tcl
#Direwolf