httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Evans <isr...@lith.com>
Subject attempting to set up Apache for the first time...
Date Thu, 24 Jan 2002 16:44:57 GMT


I've got the Apache Server running but I'm somewhat stuck on getting the CGI
stuff going.
The following is a tad long, but I think it's fairly complete so as to
better explain my situation.

This is my script alias which I think is set up correctly.  The path I've
set up is correct, but I'm new to the options so I may be off.
############################################

ScriptAlias /cgi-bin/ "C:/Weblish/cgi-bin/"

    <Directory "C:/Weblish/cgi-bin/">
        AllowOverride None
        Options +ExecCGI
        Order allow,deny
        Allow from all
    </Directory>

############################################





I don't have Perl on my machine, but I do have Python, which I like much
better so I'm using that as the language for my cgi programs.  My super
simple introductory cgi is as follows.
######################################

#! % python

header = "Content-type: text/html\n\n"
content = "Hello, Baby."

print header, content

######################################




I access this cgi file by entering "http://localhost/cgi-bin/test.cgi"  into
my browser after having made sure that the Server is running.

I get the following error message:
####################################

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, Israel@lith.com and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.

  _____  

Apache/1.3.20 Server at ISREAL.lith.com Port 80

##########################################





And when I look into the Error logs I find these tidbits of information:
#############################################

[Thu Jan 24 08:08:42 2002] [error] [client 127.0.0.1] attempt to invoke
directory as script: c:/weblish/cgi-bin
[Thu Jan 24 08:11:28 2002] [error] [client 127.0.0.1] couldn't spawn child
process: c:/weblish/cgi-bin/test.cgi

#############################################

Would anybody here have any idea why I can't seem to get this simple cgi
stuff running.  I'm very new to most of this so I'm sure I've missed
something.  Any help will be most appreciated.

Thanks,

~Israel~


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message