You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Boyle Owen <Ow...@swx.com> on 2002/12/12 09:46:19 UTC

[users@httpd] RE: access website or webpage not work

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


Re: [users@httpd] RE: access website or webpage not work

Posted by Chad Morland <ch...@inquent.com>.
Like I said.... replace the first line of /usr/lib/cgi-bin/entrance.pl
to say "#!/usr/bin/perl"



-CM
----- Original Message -----
From: "eric lin" <fs...@centurytel.net>
To: "Chad Morland" <ch...@inquent.com>
Cc: <us...@httpd.apache.org>; <de...@lists.debian.org>
Sent: Friday, December 13, 2002 12:37 AM
Subject: Re: [users@httpd] RE: access website or webpage not work


> www:/home/fsshl# which perl
> /usr/bin/perl
> www:/home/fsshl# env
> SSH_AGENT_PID=507
> KDE_MULTIHEAD=false
> SHELL=/bin/bash
> TERM=xterm
> QT_XFT=0
> GTK_RC_FILES=/etc/gtk/gtkrc:/home/fsshl/.gtkrc:/home/fsshl/.gtkrc-kde
> USER=root
>
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40
;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01
;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*
.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:
*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:
*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mpg=01;35
:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:
*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
> SSH_AUTH_SOCK=/tmp/ssh-XXQlcPCz/agent.503
> USERNAME=fsshl
> SESSION_MANAGER=local/www.linuxspice.com:/tmp/.ICE-unix/536
>
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/loc
al/bin
> PWD=/home/fsshl
> LANG=C
> GDM_LANG=C
> PS1=\h:\w\$
> GDMSESSION=KDE
> SHLVL=3
> HOME=/root
> LOGNAME=fsshl
> DISPLAY=:0.0
> XAUTHORITY=/home/fsshl/.Xauthority
> COLORTERM=
> _=/usr/bin/env
>
> my path have /usr/bin and perl is in it
> it still not work
>
> please help again
>
>
>
>
>
>
> Chad Morland wrote:
> > 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" <fs...@centurytel.net>
> > To: <us...@httpd.apache.org>; <de...@lists.debian.org>
> > Cc: <Ow...@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
> >>
> >>
> >
> >
> >
> >
>
>
> --
> 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
>
>


---------------------------------------------------------------------
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


Re: [users@httpd] RE: access website or webpage not work

Posted by eric lin <fs...@centurytel.net>.
www:/home/fsshl# which perl
/usr/bin/perl
www:/home/fsshl# env
SSH_AGENT_PID=507
KDE_MULTIHEAD=false
SHELL=/bin/bash
TERM=xterm
QT_XFT=0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/fsshl/.gtkrc:/home/fsshl/.gtkrc-kde
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
SSH_AUTH_SOCK=/tmp/ssh-XXQlcPCz/agent.503
USERNAME=fsshl
SESSION_MANAGER=local/www.linuxspice.com:/tmp/.ICE-unix/536
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
PWD=/home/fsshl
LANG=C
GDM_LANG=C
PS1=\h:\w\$
GDMSESSION=KDE
SHLVL=3
HOME=/root
LOGNAME=fsshl
DISPLAY=:0.0
XAUTHORITY=/home/fsshl/.Xauthority
COLORTERM=
_=/usr/bin/env

my path have /usr/bin and perl is in it
it still not work

please help again






Chad Morland wrote:
> 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" <fs...@centurytel.net>
> To: <us...@httpd.apache.org>; <de...@lists.debian.org>
> Cc: <Ow...@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
>>
>>
> 
> 
> 
> 


-- 
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


Re: [users@httpd] RE: access website or webpage not work

Posted by eric lin <fs...@centurytel.net>.
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