Re: Apache 1.3.23 (Suse Linux8.0): CGI

This is a discussion on Re: Apache 1.3.23 (Suse Linux8.0): CGI within the Apache Web Server forums, part of the Web Server and Related Forums category; On Fri, 18 Jul 2003 18:22:35 +0200, The Other Guy responded to a post from "Kreutzfeldt" &...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-18-2003
The Other Guy
 
Posts: n/a
Default Re: Apache 1.3.23 (Suse Linux8.0): CGI

On Fri, 18 Jul 2003 18:22:35 +0200, The Other Guy responded to a post
from "Kreutzfeldt" <phase.hl@t-online.de> who wrote in
alt.apache.configuration:

>Hi,
>I am very new to Apache. I successfully installed Apache and localhost is
>displaying the default page. However my primitive Perl CG Script (Hello
>World) copied into /usr/local/httpd/cgi--bin/ invoked Internal Error due to
>missconfiguration.
>
>What ist wrong?
>
>Thanks
>
>Chris



Check your error log for any details. This can be a difficult problem
to determine without that info.

The most likely cause is that you have not got the shebang line
pointing to the correct path to the Perl interpreter (i.e., the very
top line in the script -- #!usr/bin/perl or something like that).

Regards,
TOG

--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.
  #2 (permalink)  
Old 07-19-2003
ZedGama3
 
Posts: n/a
Default Re: Apache 1.3.23 (Suse Linux8.0): CGI


Always check your error logs, but the most comon error I've seen is people
not setting the script executable.
Another good tip for CGI is to attempt to execute it in shell, like
`./myPerlScript.pl`, look for any compile/exec errors and that it starts off
with the correct html header scripts.
That will usually solve 97% of most errors.

>
> Check your error log for any details. This can be a difficult problem
> to determine without that info.
>
> The most likely cause is that you have not got the shebang line
> pointing to the correct path to the Perl interpreter (i.e., the very
> top line in the script -- #!usr/bin/perl or something like that).
>
> Regards,
> TOG
>
> --
> ./configure --prefix=~/zyterion
> Not this guy or that guy, The Other Guy.
>
> This spot may contain a satirical comment or comedic source,
> and is meant to be funny. If you are easily offended, gullible
> or don't have a sense of humour we suggest you read elsewhere.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0