Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Rebol in CGI mode. Re:

From: kracik:mbox:dkm:cz at: 4-Aug-2000 10:21

Hi, could you describe the error Apache prints? Apache also logs CGI errors somewhere IIRC. Most of my CGI problems were caused by a wrong path or access rights. Also, the first line ("hashbang") must end with linefeed alone, not CRLF, and should contain full absolute filesystem path, not relative path or virtual website path. These are things to check, in this order: 1. Apache can't find your script 2. Apache can't read your script because it's not readable by others (on Linux, FreeBSD can execute non-readable files) 3. Apache can't execute your script because it's not executable by others 4. Apache can't find REBOL at the path written in your script 5. Apache can't read REBOL 6. Apache can't execute REBOL 7. REBOL ends with an error before the script prints "Content-type: text/html^m^j" You can also check if Apache can execute scripts in different language, for example Perl or shell scripts. This is a script I use for CGI testing: #!/domains/my/cgi-bin/rebol --cgi REBOL [] print "Content-Type: text/plain^m^j" print "Hi from REBOL" print mold system/options/cgi print system/version -- Michal Kracik [jwold--minot--com] wrote: