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

problem with cgi installation on a server

 [1/7] from: rebolask::free::fr at: 24-May-2003 20:12


Hello, 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 #!/usr/bin/rebol -c REBOL [Title: "Server Time"] print "content-type: text/html^/" print [<HTML><BODY>] print ["Date/time is:" now] print [</BODY></HTML>] 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 ? Thanks.

 [2/7] from: gchiu:compkarori at: 25-May-2003 9:52


On Sat, 24 May 2003 20:12:3 +0100 "[rebolask--free--fr]" <[rebolask--free--fr]> wrote:
>so I uploaded rebol in cgi-bin and set permission to 755 >as well as now.cgi with permission also and content
And you did upload rebol in binary mode, and now.cgi in text mode? -- Graham Chiu http://www.compkarori.com/cerebrus/

 [3/7] from: joel:neely:fedex at: 24-May-2003 18:28


Hi, [rebolask--free--fr] wrote:
> 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 > > #!/usr/bin/rebol -c >
If you put REBOL in .../www/cgi-bin and then specified in your script (via the shebang line) that REBL was located in /usr/bin then it's not surprising that the script won't run. If I've understood your email correctly, then you need either to put REBOL in /usr/bin or change your shebang line to refer to the *file*system*directory* (note: *not* the URL path under the web server's document directory) where REBOL is actually located. HTH, -jn-

 [4/7] 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: http://www.meurrens.org/ REB: http://rebol.mksa.net/ PGPKEY: http://www.meurrens.org/pgp/ Please don't mail me attached files, instead, use my 'exchange area' : EXCHANGE AREA: http://www.meurrens.org/exchange/ (HTTP/FTP upload/download of temporary/persistent files)

 [5/7] from: rebolask:free at: 27-May-2002 8:44


Sorry I don't feel at ease with cgi configuration path that's why I must have some problem. The hosting service does support perl but won't answer for rebol so I have to cope myself and with your help. perl is installed I think on the server's document directory but I don't have access to it. I will try again beca use it is not very clear in my head so I will come back later.

 [6/7] from: rebolask:free at: 27-May-2002 8:38


Thanks for your very complete answer, I will check again with your information :)

 [7/7] from: rebolask:free at: 29-May-2003 23:05


My hosting service just learn me that they only authorise php and cgi any more although cgi was listed when I took the subscription :(. At least there was a sure reason for rebol not to work :).