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

[REBOL] Re: problem with cgi installation on a server

From: rebol:meurrens at: 25-May-2003 1:01

Hello, Bonsoir ou Bonjour X., 1) The indication /usr/bin/perl is there because the perl executable is in /usr/bin in this machine I have a server with this structure
>www > cgi-bin > >path to perl is #!/usr/bin/perl > >so I uploaded rebol in cgi-bin and set permission to 755 as well as >now.cgi with permission also and content
2) If you have root access to your linux box you may try to place the REBOL executable in a similar place as Perl. It could however be a better idea to create a directory rebol within /usr/bin/ and, within /usr/bin/rebol/ , two subdirectories such as core and sdk. So, once you decide to buy another version or to test miscellanous versions, you are ready. Then, put your rebol executable for linux within /usr/bin/rebol/core CHMOD everything to 755 and write down somewhere that your path must be written #'!/usr/bin/rebol/core/rebol as the very first line of each of your script. 3) If you are not root, but you still have some rights on the machine on which you are hosted, you must first know where you are. Even if your top directory looks like "/", it is in reality something like "/home/ptirigolo/" Use pwd for that It will look like /home/ptirigolo/www where you have a directory cgi-bin (according to your mail). Then, in /home/ptirigolo/ , create the structure /home/ptirigolo/rebol/ /home/ptirigolo/rebol/core/ /home/ptirigolo/rebol/sdk/ and put the executable file as /home/ptirigolo/rebol/core/rebol CHMOD everything to 755 and write down somewhere that your path must be written #'!/home/ptirigolo/rebol/core/rebol as the very first line of each of your script. 4) Uploading your file now.cgi within /home/ptirigolo/www/cgi-bin/ is ok and it's also OK to CHMOD it to 755 Mind that, within cgi-bin, you probably don't need to use the cgi extension. #!/usr/bin/rebol -c
> REBOL [Title: "Server Time"] > print "content-type: text/html^/" > print [<HTML><BODY>] > print ["Date/time is:" now] > print [</BODY></HTML>]
5) The Error 500 indicated that REBOL was not found because you have placed it within YOUR cgi-bin and NOT, to the benefits of all, in some /usr/bin/ subdirectories while, on the other hand, you specified in your scripts that REBOL was located near its old and affectuous brother Perl...
>I got this error > >Internal Server Error >The server encountered an internal error or misconfiguration and was >unable to complete your request. > >did I miss something ?
6) If all of this does not work and/or you don't have the rights on your machine you may try to leave REBOL where you put it thus in /home/ptirigolo/www/cgi-bin/ (according to your mail) but then your scripts should specify #!/home/ptirigolo/www/cgi-bin/rebol -c This is not a very neat installation, but it may work... 7) If you don't know where you are (you have no telnet access, you don't know how to use pwd, etc...) you may still try a relative path in the first line of your scripts. I never use this. And I am not sure if it will be acceptable. I have serious doubts. 8) But in this case, it would probably be a better solution to use another hosting for your site... (Or to buy a Linux box and build your own server ... ) === Hey? What's your real name? Pseudo are generally not used on this list :-( ... Regards, </marc> Prof. Ir Marc Meurrens, Brussels (be) TEL: +32 (0)2 537 2812 FAX: +32 (0)2 537 7645 EMAIL: [marc--meurrens--org] URL: REB: PGPKEY: Please don't mail me attached files, instead, use my 'exchange area' : EXCHANGE AREA: (HTTP/FTP upload/download of temporary/persistent files)