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" &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 | |
| Display Modes | |
|
|