Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache

1 view
Skip to first unread message

Lars Svensson

unread,
Dec 19, 2000, 2:22:57 PM12/19/00
to
Hi.
I got this error-message from an Apache-server:

[Tue Dec 19 20:16:15 2000] [error] [client 127.0.0.1] couldn't spawn child
process: c:/program/apache group/apache/cgi-bin/htmlsearch.cgi

In english (or swedish), what does it mean?

regards Lars


Dick Latshaw

unread,
Dec 19, 2000, 3:10:48 PM12/19/00
to
In article <lAO%5.917$wz.4...@nntp1.chello.se>,

One possibility is that the path to perl.exe on the shebang line of
your cgi program is incorrect.
It should be something like: #!c:/perl/bin/perl -Tw
--
Regards,
Dick


Sent via Deja.com
http://www.deja.com/

Lars Svensson

unread,
Dec 19, 2000, 3:31:47 PM12/19/00
to
Well, it was a stupid mistake by me.
I wrote #!/c:\Perl\bin\perl.exe instead of #!c:\Perl\bin\perl.exe.
Once I扉e got that fixed the next problem comes along.

OK, I have an .html that contains a form.
The form calles for http://localhost/cgi-bin/htmlsearch.cgi with a dir and a
file. But when I press the submitbutton the stupid browser wants to download
the cgi-file instead of executing the script I called for.

Why??

regards Lars


"Dick Latshaw" <lats...@my-deja.com> skrev i meddelandet
news:91ofc1$ejm$1...@nnrp1.deja.com...

mothra

unread,
Dec 19, 2000, 3:51:05 PM12/19/00
to

Lars Svensson wrote:

> Well, it was a stupid mistake by me.
> I wrote #!/c:\Perl\bin\perl.exe instead of #!c:\Perl\bin\perl.exe.
> Once I扉e got that fixed the next problem comes along.
>
> OK, I have an .html that contains a form.
> The form calles for http://localhost/cgi-bin/htmlsearch.cgi with a dir and a
> file. But when I press the submitbutton the stupid browser wants to download
> the cgi-file instead of executing the script I called for.
>
> Why??
>
> regards Lars

You need to check your apache configuration. Also you might want to post your
apache questions
to the appropriate newsgroup.

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
[snipped]

Dick Latshaw

unread,
Dec 19, 2000, 4:00:09 PM12/19/00
to
In article <TAP%5.925$wz.4...@nntp1.chello.se>,

"Lars Svensson" <lars...@home.se> wrote:
> OK, I have an .html that contains a form.
> The form calles for http://localhost/cgi-bin/htmlsearch.cgi with a
> dir and a file. But when I press the submitbutton the stupid browser
> wants to download the cgi-file instead of executing the script I
>called for.
>
> Why??

The server is not recognizing your cgi program as an executable. This
is a server configuration issue and off topic for this news group. Try
the FAQ's at www.apache.org.

John Boy Walton

unread,
Dec 19, 2000, 7:40:08 PM12/19/00
to

> file. But when I press the submitbutton the stupid browser wants to
download
> the cgi-file instead of executing the script I called for.
>
> Why??
Could be the directory is not authorised as cgi-exec or your perl.exe is not
set to handle the script. Both problems are handled in http.conf in the conf
directory.
Look for the add handler directives, and the <directory> tag for your
cgi-bin add an option exec-cgi line.


0 new messages