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

[REBOL] AW: Re:Trying to get Rebol CGI working on my website

From: dominique:microplus at: 19-Mar-2003 13:00

Hi Petr, you'r right - the installation of Apache and Rebol isn't a problem and takes a few minutes. But the tests after the installation are the problem. I don't speak about errors in the script (wrong path and wrong syntaxe) because it is normal in this case that it doesn't work. I'm rather speaking about the fact, that the FIRST CGI-script doesn't always function even if there is no error in it and everythings is installed and declared properly. It seem's, I'm not the only one having the problem otherwise there wouldn't be so many upset programmers trying to find a solution (in the last few days I had a look at a few newsgroups and was amazed about the number of people having exactly the same problems as I did). Anyway I don't have the problem anymore - it finally worked (I already sent some information about what I did to get it work, hoping it will help others). In order to get the FIRST CGI script working, I believe it can help to follow some rules about the shebang-line like : - disable security with -s - put rebol.exe rather than rebol - I didn't notice if the extension for the script is important (but I tried .cgi as you said) the shebang-line could be like that: #!C:/rebol/rebol.exe -cs But after the FIRST CGI-script worked well, there are no problem anymore and it works even if the declaration of the shebang-line differs from that I wrote above : - the security is ok - it doesn't matter if you put rebol or rebol.exe - the extention for the script doesn't matter (I just tried script.aaa.txt as name !!!!) the shebang-line could be like that: #!C:/rebol/rebol -c Petr I just received you answer : Ohlsson, Dominique wrote:
>And now it worked properly, following lines PRODUCE AN ERROR (and
don't push
>the file to the browser as if it were a .txt file ANY MORE) > >#!/C:/Programme/Rebol/core/rebol.exe -cs >#!/C:/Programme/Rebol/core/rebol -cs >#!/C/Programme/Rebol/core/rebol.exe -cs >#!/C/Programme/Rebol/core/rebol -cs > > >
all seem to work for me .... -pekr- I'm glad to know, that it works for you - I tried it again with #!/C/Programme/Rebol/core/rebol.exe -c and #!/C:/Programme/Rebol/core/rebol.exe -c and get 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. Apache/1.3.26 Server at pcxxxxxxxxxx ERROR.LOG (I tried with 2 different extentions) [Wed Mar 19 12:42:30 2003] [error] [client 127.0.0.1] couldn't spawn child process: c:/programme/apache/cgi-bin/now.r [Wed Mar 19 12:49:36 2003] [error] [client 127.0.0.1] couldn't spawn child process: c:/programme/apache/cgi-bin/now.cgi When I put again #!C:/Programme/Rebol/core/rebol -c it works again very fine I DON'T UNDERSTAND WHY ??????????????????????????????????