Help with apache server

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Help with apache server

Post 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
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post 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.
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post 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
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

does it parse php files with any extension?
<edit>do you have all the appropriate LoadModule statements in the conf?</edit>
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

It parses php3, php, htm, html.
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post 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?
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

It is suppose to parse index.php initially but it brings up a download prompt instead.
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post 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 :)
Post Reply