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:[EMAIL PROTECTED]]
Sent: Donnerstag, 12. Dezember 2002 17:33
To: Boyle Owen
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Sincere Eric
www.linuxspice.com
linux pc for sale


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to