STILL Need Solution to 500 Problem!

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
zz723
-


Joined: 19 Nov 2003
Posts: 6

PostPosted: Wed Nov 19, 2003 2:32 am    Post subject: STILL Need Solution to 500 Problem! Reply with quote

I've scanned this forum in and out, and can't find a solution that solves my Error Code 500 problem on my CGI scripts. NOT ONE CGI Script works. Its in the right place, too. I don't know CGI, but I'm an experienced web programmer, and even downloaded CGI scripts from the Internet that do not work. When I ran my previous server, Sambar, the same exact thing occured. My modules and paths are set correctly. HELP!


Thanks a lot, I've had this server for a couple hours now and love it.
Back to top View user's profile Send private message Send e-mail AIM Address
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Wed Nov 19, 2003 5:31 am    Post subject: Reply with quote

Hi zz723--

Abyss *will* run cgi scripts...so the thing to do is know that you can get help here. People might need more information to be able to really help you.

Error 500 is one of the most hated and non-descript errors...smile.

First, have you installed perl and followed the directions here:
http://www.aprelium.com/abyssws/perl.html exactly? Probably you have.

What are you using as your shebang line (your path to perl)?
What kind of errors are you showing in your cgi.log file.

Supply some information and people will be able to help.

Regards,
Axis
Back to top View user's profile Send private message
goose
-


Joined: 17 Sep 2002
Posts: 608
Location: The Land Of OZ! come here toto!

PostPosted: Wed Nov 19, 2003 5:14 pm    Post subject: Reply with quote

its all to do with setting up your paths to the script and allowing abyss to look for what it , meaning configuring it in abyss and everything should work.
_________________
living in an armish paradise.....no gates here!

mawuahahaha :)
Back to top View user's profile Send private message
zz723
-


Joined: 19 Nov 2003
Posts: 6

PostPosted: Wed Nov 19, 2003 9:49 pm    Post subject: Reply with quote

Quote:
First, have you installed perl and followed the directions here:
http://www.aprelium.com/abyssws/perl.html exactly? Probably you have.


Yes, AND I double-checked.


Quote:

What are you using as your shebang line (your path to perl)?


As of now, it is set to C:\Program Files\ActivePerl\bin\perl.exe This file does exist. I even tried switching the Path to the Perl module of my old server (In which Perl/CGI also did not work, same error), and I recieve 500 still.

Quote:
What kind of errors are you showing in your cgi.log file.


I recieve a bunch of Perl/CGI Syntax Errors, yet scripts I've installed I got from the Internet, so they HAVE been tested. Here's the latest of my cgi.log:



Code:
Can't exec /bin/sh at test.cgi line 1.
Can't exec /bin/sh at test.cgi line 1.
Scalar found where operator expected at test.cgi line 5, near "echo argc is $#. argv is "$*"
  (Might be a runaway multi-line "" string starting on line 1)
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 14, near "echo HTTP_ACCEPT = ""
  (Might be a runaway multi-line "" string starting on line 5)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 14, near "echo HTTP_ACCEPT = "$HTTP_ACCEPT"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 15, near "echo PATH_INFO = ""
  (Might be a runaway multi-line "" string starting on line 14)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 15, near "echo PATH_INFO = "$PATH_INFO"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 16, near "echo PATH_TRANSLATED = ""
  (Might be a runaway multi-line "" string starting on line 15)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 16, near "echo PATH_TRANSLATED = "$PATH_TRANSLATED"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 17, near "echo SCRIPT_NAME = ""
  (Might be a runaway multi-line "" string starting on line 16)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 17, near "echo SCRIPT_NAME = "$SCRIPT_NAME"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 18, near "echo QUERY_STRING = ""
  (Might be a runaway multi-line "" string starting on line 17)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 18, near "echo QUERY_STRING = "$QUERY_STRING"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 25, near "echo ""
  (Might be a runaway multi-line "" string starting on line 18)
   (Missing semicolon on previous line?)
String found where operator expected at test.cgi line 26, near "echo ""
  (Might be a runaway multi-line "" string starting on line 25)
   (Missing semicolon on previous line?)
Bareword found where operator expected at test.cgi line 26, near "echo "all"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 31, at end of line
   (Missing semicolon on previous line?)
syntax error at test.cgi line 5, near "echo argc is $#. argv is "$*"
Can't find string terminator '"' anywhere before EOF at test.cgi line 31.
Scalar found where operator expected at test.cgi line 5, near "echo argc is $#. argv is "$*"
  (Might be a runaway multi-line "" string starting on line 1)
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 14, near "echo HTTP_ACCEPT = ""
  (Might be a runaway multi-line "" string starting on line 5)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 14, near "echo HTTP_ACCEPT = "$HTTP_ACCEPT"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 15, near "echo PATH_INFO = ""
  (Might be a runaway multi-line "" string starting on line 14)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 15, near "echo PATH_INFO = "$PATH_INFO"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 16, near "echo PATH_TRANSLATED = ""
  (Might be a runaway multi-line "" string starting on line 15)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 16, near "echo PATH_TRANSLATED = "$PATH_TRANSLATED"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 17, near "echo SCRIPT_NAME = ""
  (Might be a runaway multi-line "" string starting on line 16)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 17, near "echo SCRIPT_NAME = "$SCRIPT_NAME"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 18, near "echo QUERY_STRING = ""
  (Might be a runaway multi-line "" string starting on line 17)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 18, near "echo QUERY_STRING = "$QUERY_STRING"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 25, near "echo ""
  (Might be a runaway multi-line "" string starting on line 18)
   (Missing semicolon on previous line?)
String found where operator expected at test.cgi line 26, near "echo ""
  (Might be a runaway multi-line "" string starting on line 25)
   (Missing semicolon on previous line?)
Bareword found where operator expected at test.cgi line 26, near "echo "all"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 31, at end of line
   (Missing semicolon on previous line?)
syntax error at test.cgi line 5, near "echo argc is $#. argv is "$*"
Can't find string terminator '"' anywhere before EOF at test.cgi line 31.
Bareword found where operator expected at test.cgi line 28, near "dd bs=1 count=$CONTENT_LENGTH 2>/dev"
  (Might be a runaway multi-line // string starting on line 1)
   (Do you need to predeclare dd?)
syntax error at test.cgi line 28, near "dd bs=1 count=$CONTENT_LENGTH 2>/dev"
Can't find string terminator '"' anywhere before EOF at test.cgi line 29.
Bareword found where operator expected at test.cgi line 28, near "dd bs=1 count=$CONTENT_LENGTH 2>/dev"
  (Might be a runaway multi-line // string starting on line 1)
   (Do you need to predeclare dd?)
syntax error at test.cgi line 28, near "dd bs=1 count=$CONTENT_LENGTH 2>/dev"
Can't find string terminator '"' anywhere before EOF at test.cgi line 29.
Bareword found where operator expected at test.cgi line 28, near "dd bs=1 count=$CONTENT_LENGTH 2>/dev"
  (Might be a runaway multi-line // string starting on line 1)
   (Do you need to predeclare dd?)
syntax error at test.cgi line 28, near "dd bs=1 count=$CONTENT_LENGTH 2>/dev"
Can't find string terminator '"' anywhere before EOF at test.cgi line 29.
Scalar found where operator expected at test.cgi line 5, near "echo argc is $#. argv is "$*"
  (Might be a runaway multi-line "" string starting on line 1)
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 14, near "echo HTTP_ACCEPT = ""
  (Might be a runaway multi-line "" string starting on line 5)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 14, near "echo HTTP_ACCEPT = "$HTTP_ACCEPT"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 15, near "echo PATH_INFO = ""
  (Might be a runaway multi-line "" string starting on line 14)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 15, near "echo PATH_INFO = "$PATH_INFO"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 16, near "echo PATH_TRANSLATED = ""
  (Might be a runaway multi-line "" string starting on line 15)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 16, near "echo PATH_TRANSLATED = "$PATH_TRANSLATED"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 17, near "echo SCRIPT_NAME = ""
  (Might be a runaway multi-line "" string starting on line 16)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 17, near "echo SCRIPT_NAME = "$SCRIPT_NAME"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 18, near "echo QUERY_STRING = ""
  (Might be a runaway multi-line "" string starting on line 17)
   (Missing semicolon on previous line?)
Scalar found where operator expected at test.cgi line 18, near "echo QUERY_STRING = "$QUERY_STRING"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 25, near "echo ""
  (Might be a runaway multi-line "" string starting on line 18)
   (Missing semicolon on previous line?)
String found where operator expected at test.cgi line 26, near "echo ""
  (Might be a runaway multi-line "" string starting on line 25)
   (Missing semicolon on previous line?)
Bareword found where operator expected at test.cgi line 26, near "echo "all"
   (Do you need to predeclare echo?)
String found where operator expected at test.cgi line 31, at end of line
   (Missing semicolon on previous line?)
syntax error at test.cgi line 5, near "echo argc is $#. argv is "$*"
Can't find string terminator '"' anywhere before EOF at test.cgi line 31.
Can't locate CGI/Carp.pm in @INC (@INC contains: .) at test.cgi line 1.
BEGIN failed--compilation aborted at test.cgi line 1.
Can't locate CGI/Carp.pm in @INC (@INC contains: .) at test.cgi line 1.
BEGIN failed--compilation aborted at test.cgi line 1.
Can't locate CGI/Carp.pm in @INC (@INC contains: .) at test.cgi line 1.
BEGIN failed--compilation aborted at test.cgi line 1.
Can't locate CGI/Carp.pm in @INC (@INC contains: .) at test.cgi line 1.
BEGIN failed--compilation aborted at test.cgi line 1.
String found where operator expected at echo.cgi line 1, near "echo "<HTML>""
   (Do you need to predeclare echo?)
syntax error at echo.cgi line 1, near "echo "<HTML>""
Execution of echo.cgi aborted due to compilation errors.
Can't exec /bin/sh at echo.cgi line 1.
Can't locate CGI.pm in @INC (@INC contains: .) at click.pl line 25.
BEGIN failed--compilation aborted at click.pl line 25.


I'm thinking that it has something to do with that 1st line, like it can't load what it wants to or something, so the other errors are drawn off of it.


Thanks a lot for all of your help!
Back to top View user's profile Send private message Send e-mail AIM Address
topniz
-


Joined: 11 Nov 2003
Posts: 35
Location: Metz-France

PostPosted: Thu Nov 20, 2003 10:12 am    Post subject: Reply with quote

I think you are testing on a windows machine.

And your test.cgi is for unix or linux machines. since /bin/sh isn't recognized by windows.. isn't it?

try a simple perl test like this :

Code:
#! /bin/perl.exe

echo "Hello World..."


But before you try it as a CGI, execute the script directly from the command line by typing

Code:
c:>perl Hello.cgi


Ensure that your perl's bin directory is in your win path (environment variables)[/code]
_________________
ToPniz
"Don't ask what the community could do for you but ask what you could do for the community"
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
zz723
-


Joined: 19 Nov 2003
Posts: 6

PostPosted: Thu Nov 20, 2003 8:20 pm    Post subject: Reply with quote

Wow, that makes sense! What do I set that "usr/bin" thing to be if my Perl module is C:\Program Files\ActivePerl\bin\perl.exe and I'm executing from C:\Program Files\Abyss\whatever.exe
Back to top View user's profile Send private message Send e-mail AIM Address
zz723
-


Joined: 19 Nov 2003
Posts: 6

PostPosted: Thu Nov 20, 2003 9:39 pm    Post subject: Reply with quote

WOW! THANKS SO MUCH AXIS! I CHANGED THE USR/BIN THING TO THE PATH OF M YPERL EXECUTABLE, AND IT WORKS! Thanks SO MUCH! Sorry for the All-Caps, but its necessary.


~ZZ
Back to top View user's profile Send private message Send e-mail AIM Address
topniz
-


Joined: 11 Nov 2003
Posts: 35
Location: Metz-France

PostPosted: Tue Nov 25, 2003 4:11 pm    Post subject: Reply with quote

thanks for axis... and... for me... isn't it?

(get back to Cesar what is due Cesar)... :wink:

Don't pay attention to what i say... We're all together here to learn new things from each other... Enjoy your abyss...
_________________
ToPniz
"Don't ask what the community could do for you but ask what you could do for the community"
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dichaeld
-


Joined: 20 Jun 2003
Posts: 11

PostPosted: Sun Jan 18, 2004 3:27 am    Post subject: Reply with quote

hey i think i am having the same prob as the other guy... what do i type for the location of pearl if it is c:/perl/bin/perl.exe?
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Jan 18, 2004 2:48 pm    Post subject: Reply with quote

dichaeld,

What is the problem you have? Is there an error log in log/cgi.log?
Have you installed Perl as described in http://www.aprelium.com/abyssws/perl.html ? If you've done so, usually you can ignore the #! line.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group