Page 1 of 1
Help with apache server
Posted: Mon Aug 05, 2002 10:23 am
by Johnm
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
Posted: Mon Aug 05, 2002 10:41 am
by llimllib
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:
Code: Select all
AddType application/x-httpd-php .php .phtml
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.
Posted: Mon Aug 05, 2002 10:50 am
by Johnm
Here is that part of the httpd.conf file.
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
#
So i already had the .php3 in it. Any other ideas?
Direwolf
Posted: Mon Aug 05, 2002 10:54 am
by llimllib
does it parse php files with any extension?
<edit>do you have all the appropriate LoadModule statements in the conf?</edit>
Posted: Mon Aug 05, 2002 11:21 am
by Johnm
It parses php3, php, htm, html.
Posted: Mon Aug 05, 2002 11:25 am
by llimllib
so what extension is the file that you're trying to display? if it was getting parsed, it wouldn't be asking for a download, or is the page displaying AND asking for a download?
Posted: Mon Aug 05, 2002 11:35 am
by Johnm
It is suppose to parse index.php initially but it brings up a download prompt instead.
Posted: Mon Aug 05, 2002 11:41 am
by llimllib
ok, that's what I thought, it's not parsing it. If you have the right LoadModule statements in your httpd.conf then, the help I can give is about run out. Have you restarted apache since you added the LoadModule and AddType statements? If so, sounds like an AIX problem...good luck with that
