Wrong path to your perl executable in the script you are using.
Type the following:
#which perl
And then replace that path with the one that you have in the script in
question. (chances are you are using something like /usr/bin/perl) If
that doesn't work then you don't have a perl executable in your $PATH.
Try the following and it should find it.
#find / -name perld
-CM
----- Original Message -----
From: "eric lin" <fsshl@centurytel.net>
To: <users@httpd.apache.org>; <debian-user@lists.debian.org>
Cc: <Owen.Boyle@swx.com>
Sent: Thursday, December 12, 2002 10:34 PM
Subject: Re: [users@httpd] RE: access website or webpage not work
Dear Boyle:
i tried to put a simple perl file in my
/usr/lib/cgi-bin/entrance.pl
#!/usr/local/bin/perl
use strict;
use CGI ':standrard';
print "Content-type: text/html\n\n";
foreach my $name (param()) {
my @cpu=param($name);
print "<p>The field with the NAME attribute euual to <b>
$name</b> had a VALUE equal to <b>@cpu</b></p>\n";
and my
/var/www/index.html
have
<form method="get"
action="http://www.linuxspice.com/cgi-bin/entrance.pl">
reboot
when I click the submit bottom of my site in my browser it still
Internal Server Error
please help
Boyle Owen wrote:
All mails via the list, please - no personal mails.
Internal Server Error
means the CGI program did not work when the webserver tried to
execute
it. There is a big tutorial about CGIs in the docs that came with
apache. Read that first, it explains this very point. Basic tips:
- test the program form the command line,
- check it outputs a CGI header before any other data
- does it work as the apache user (esp. if it has to write files
etc.)
- does it have all the ENVs it needs (remember that it runs in a
reduced
shell as apache user).
This is a problem with your CGI and not with apache - apache is
working
perfectly which is why you get the 500 error :-)
Rgds,
Owen Boyle
-----Original Message-----
From: eric lin [mailto:fsshl@centurytel.net]
Sent: Donnerstag, 12. Dezember 2002 17:33
To: Boyle Owen
Cc: users@httpd.apache.org; debian-user@lists.debian.org
Subject: access website or webpage not work
Dear Boyle:
I using html to make a form and action , try to collect data from
visitor and dump to some where im my file, but when I hit
submit, it show
Internal Server Error
in my index.html I have a line
<form method="post"
action="http://www.linuxspice.com/cgi-bin/entrance.cgi">
do you know what may case wrong?
/usr/lib/cgi-bin/entrance.cgi is already be created and have
permision 777
I also mark out # in /etc/apache/httpd.conf <directory
/usr/lib/cgi-bin
Allowoverwrite none
line
looking to hear from you soon
--
Sincere Eric
www.linuxspice.com
linux pc for sale
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any
mistransmission.
If you receive this message in error, please notify the sender
urgently
and then immediately delete the message and any copies of it from
your
system. Please also immediately destroy any hardcopies of the
message.
You must not, directly or indirectly, use, disclose, distribute,
print,
or copy any part of this message if you are not the intended
recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be
the
views of the sender's company.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
--
Sincere Eric
www.linuxspice.com
linux pc for sale
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org