Hello world, I never used cgi before, but I'm very interested in using Rebol instead of php. I have a linux hosting for my site, so I tried to make the following script and put it in the same folder of rebol executable: Code: #!./rebol -c REBOL [Title: "Server Time"] print "content-type: text/html^/" print [<HTML><BODY>] print ["Date/time is:" now] print [</BODY></HTML>] but I receive the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. More information about this error may be available in the server error log. so I looked at the log: [Mon May 24 17:42:57 2010] [error] [client 93.55.226.44] File does not exist: /web/htdocs/www.myste.example/home/admin Have you any idea?
Is ./rebol chmod to 755? Is your script chmod to 755? Do cgi scripts need to be in a particular folder on your server? Try -cs options, instead of just -c . HTH
All of what Graham said. Plus other things to check: is that path to the executable right? it may need to be something like #!/account-name/rebol/... have you got the right line terminations? apache can be picky about CR vs CRLF vs LF
I thought you needed two blank lines after the "Content-type" line. You would not put your script in the same file as the rebol executable, unless the rebol executable was in the proper folder for cgi scripts. On opensuse 10.1 the location is /srv/www/cgi-bin.
Code: print "content-type: text/html^/" print gives one line ^/ gives the other The error sounds as though you're looking for the script in the wrong place.
Bad provider I've been using lunarpages for years, and have had no problems. Someone posted yesterday at rebolforum.com that hostgator also allows REBOL cgi.