Gossamer Forum
Home : General : Perl Programming :

Apache Install

Quote Reply
Apache Install
This is weird. I've installed Apache on WinXP in E:/Apache/Apache and did a normal installation. It is running as a service, not a console and when I visit localhost in my browser everything is fine. I see the default Apache welcome page.

However when I go to http://localhost/cgi-bin/ I get a 404

By default the installation process adds the following to httpd.conf:

Code:
ScriptAlias /cgi-bin/ "E:/Apache/Apache/cgi-bin/"

<Directory "E:/Apache/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

Does anyone know why I get a 404 - could it be an XP issue as it worked with Win98SE when I installed it a few weeks ago.

Thanks.
Quote Reply
Re: [RedRum] Apache Install In reply to
What's the error log say? Might be a bad path or something similiar.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Apache Install In reply to
OK here's what I get:

http://localhost/ I get the correct welcome page
http://localhost/cgi-bin I get 404
http://localhost/cgi-bin/ I get Forbidden which is right
http://localhost/cgi-bin/printenv I get 404 (printenv.exe exists)

Error Log:

[Sat Sep 15 17:20:22 2001] [error] [client 127.0.0.1] attempt to invoke directory as script: e:/apache/cgi-bin
[Sat Sep 15 17:20:31 2001] [error] [client 127.0.0.1] File does not exist: e:/apache/htdocs/cgi-bin
[Sat Sep 15 17:20:35 2001] [error] [client 127.0.0.1] attempt to invoke directory as script: e:/apache/cgi-bin
[Sat Sep 15 17:20:41 2001] [error] [client 127.0.0.1] (2)No such file or directory: script not found or unable to stat: e:/apache/cgi-bin/printenv

Seems strange as it has never done this before.
Quote Reply
Re: [RedRum] Apache Install In reply to
Well:

http://localhost/cgi-bin => File does not exist: e:/apache/htdocs/cgi-bin

Most likely because you have:

ScriptAlias /cgi-bin/ e:/apache/htdocs/cgi-bin/

So /cgi-bin does not match /cgi-bin/, and that's why it's going to htdocs.

As for:

http://localhost/cgi-bin/printenv => (2)No such file or directory: script not found or unable to stat: e:/apache/cgi-bin/printenv

Dont you need /cgi-bin/printenv.exe? Don't think you can drop the extension like that.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Apache Install In reply to
Ok I have a test script working in the cgi-bin but this gives a 404:

http://localhost/cgi-bin/printenv.exe

Even though:

http://localhost/cgi-bin/test.cgi

...doesn't
Quote Reply
Re: [Alex] Apache Install In reply to
Thanks Alex,

Don't worry about it - Im getting rid of printenv.exe anyway (although I suppose it would be good knowing why it gives a 404)
Quote Reply
Re: [RedRum] Apache Install In reply to
Why don't you just partition your hard drive and run a decent OS on the other? Hmm, maybe Linux comes into mind? Suirely this is a far more stable OS for a web server like Apache?!

Cheers

Wil

- wil
Quote Reply
Re: [Wil] Apache Install In reply to
I think quite a lot of people let their pre-conceived ideas of M$ cloud their judgement.

I have a real problem with people who jump on the bad wagon to diss M$. Whether people like it or not, Microsoft has revolutionized the world and the way in which we communicate and interract. To make sweeping generalizations or make narrow-minded naive statements like "Ugh, Microsoft is crap" is just so pathetic IMO - the people making comments like that are often the naive ones or are just jealous because Bill Gates has billions of dollars and they are working in Burger King or something.

That rant wasn't targetted at you WIl, but M$ haters in general

WinXP is the best yet and is a whole lot better than Win98.

.....and I already have Linux but I'm looking for the solution to the Windows problem right now.
Quote Reply
Re: [RedRum] Apache Install In reply to
Quote:
Microsoft has revolutionized the world
Oh? We would all be sitting in caves if not for microsoftShocked
Quote Reply
Re: [socrates] Apache Install In reply to
Well we certainly wouldn't have half the technology we have now regarding home pc's and web browsers and many more things...