Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Any free hosting service for rebol ?
Pages: [1] 2 Print
Author Topic: Any free hosting service for rebol ?  (Read 3385 times)
Guest
Guest


Email
Any free hosting service for rebol ?
« on: August 08, 2005, 12:41:00 PM »

PHP is everywhere and it seems there's none for rebol ?
Logged
keckman
Newbie
*
Offline Offline

Posts: 8


View Profile
Any free hosting service for rebol ?
« Reply #1 on: August 29, 2005, 02:44:27 AM »

This is real newbie's answer(guessing):

You can confiruge rebol hosting to your own homepage as easy as to your local machine...?
Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Any free hosting service for rebol ?
« Reply #2 on: August 29, 2005, 08:21:11 AM »

As long as the service supports CGI, you can use REBOL. Otherwise, you could still use PHP to launch the REBOL interpreter, I guess.
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Any free hosting service for rebol ?
« Reply #3 on: August 31, 2005, 05:53:13 AM »

Quote
As long as the service supports CGI, you can use REBOL.
I didn't find this to be the case. Sometimes CGI means Perl or in this instance I got this reply...
Quote
Hi Leke, and welcome to CFH!

Just a little more information for you. The server does have CGI, and will run most any CGI script, but many more complex CGI items (like REBOL) are not allowed because CGI uses a lot of processor time compared to other languages like PHP. I personally prefer PHP and MySQL to other systems. If you like, have a look at PHP.net for information and beginner tutorials.

Quote
Otherwise, you could still use PHP to launch the REBOL interpreter, I guess.
Could you give an example.

If anyone manages to setup REBOL for free let the forum know about it.

Cheers!
 
Logged

Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Any free hosting service for rebol ?
« Reply #4 on: September 01, 2005, 05:53:50 AM »

If they allow you to run any script, then you can run REBOL too. They can't call it CGI if it's not CGI, period.

Whether it takes more resources is debatable. Of course as long as PHP is integrated with Apache, any CGI will take more resources than using PHP; however, PHP is MUCH bigger than REBOL, and so is Perl, so they wouldn't probably even notice it.
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Any free hosting service for rebol ?
« Reply #5 on: September 05, 2005, 01:56:55 AM »

Isn't it the case that even if the server allows CGI, only scripts that have been configured to run on it can run?

Example:
AddType application/x-httpd-cgi .r .reb

saying this I think it doesn't matter to REBOL what your extension is. So maybe you could call your REBOL script say my-script.pl or my-script.beer and still be able run it with the appropriate shebang line #!... (Well it ran ok like this when I tested it on my localhost setup).

So why was that example line needed again? Aahh, all very confusing!


Quote
I've generally done fine by dumping the rebol executable somewhere in my server space and putting its location in the shebang line of my script:

Hey Brian, is your servers hosting free?


I also looked up the way to call a script with PHP.
<?php
   include("http://your-dom.com/path-to-script/my-script.r")
?>
 
Logged

Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Any free hosting service for rebol ?
« Reply #6 on: September 05, 2005, 04:50:13 AM »

You need AddType only if you want to use an extension different than .cgi. If you just call your script my-script.cgi, make it executable, and provide a correct shebang line, then it will work.

About PHP, i think you need passthru(). See http://www.php.net/manual/en/function.passthru.php .
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Any free hosting service for rebol ?
« Reply #7 on: September 06, 2005, 02:18:22 AM »

Thanks for clearing that up for me Gabriele.
Logged

Did someone try netfirms with fr
Guest


Email
Any free hosting service for rebol ?
« Reply #8 on: September 13, 2005, 03:05:30 AM »

http://www.netfirms.com

I have tested with perl it works

#!/usr/bin/perl
print "Content-type: text/html\n\n";
#
print 'Hello world.';      

but I don't know for rebol how to do it
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Any free hosting service for rebol ?
« Reply #9 on: September 13, 2005, 03:50:21 AM »

I'm also trying netfirms at the moment. I have uploaded Core for FreeBSD to the CGI bin, but am having no luck with the test scripts.
This is only my second attempt though, I'm probably doing something wrong. If I get something working, i'll let you know.

Would the shebang line be
#!/rebol/rebol --cgi --script
or
#!/cgi-bin/rebol/rebol --cgi --script

and should there be an .exe on the end of the rebol exe?

Note to the last poster:
REBOL uses ^/ instead of \n
« Last Edit: September 13, 2005, 03:59:55 AM by leke » Logged

Guest
Guest


Email
Any free hosting service for rebol ?
« Reply #10 on: September 13, 2005, 04:02:37 AM »

Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Any free hosting service for rebol ?
« Reply #11 on: September 13, 2005, 09:16:13 AM »

Notice that you need the real path in the shebang, not the "virtual" one you see from your FTP client and so on. So you need to know what the real complete path to the rebol executable is (btw, no, .exe is not needed). The file needs the appropriate permissions too, which are 755 (rwxr-xr-x), like for the .cgi scripts.
Logged
Real Path
Guest


Email
Any free hosting service for rebol ?
« Reply #12 on: September 13, 2005, 04:09:33 PM »

For real path it is said
http://www.netfirms.com/support/faq/what-a...-scripts-S.html

Full or Absolute root path:

We recommend using the DOCUMENT ROOT environment variable to automatically insert the path in your Perl script:

$ENV{'DOCUMENT_ROOT'}

You may have to use "double quotes" around the path.

For example the full path to your www directory would be:
"$ENV{'DOCUMENT_ROOT'}/www"

The full path to your cgi-bin directory would be:
"$ENV{'DOCUMENT_ROOT'}/cgi-bin"

===========================

But it's for perl, as for rebol ?


 
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Any free hosting service for rebol ?
« Reply #13 on: September 14, 2005, 01:43:34 AM »

I pretty much understand everything apart from the Full or Absolute root path - or real path.

This was on the linked page...
Quote
Alternatively, to find your document root use the printenv program: Type domain.netfirms.com/cgi/printenv on any web browser.
I got...
Code:
GATEWAY_INTERFACE=CGI/1.1 REMOTE_ADDR=192.107.218.218 QUERY_STRING= REMOTE_PORT=3843 HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) DOCUMENT_ROOT=/mnt/web_m/d09/s13/b025a4c8 NF_MYSQL_HOST=10.8.12.4:3310 HTTP_ACCEPT=*/* SCRIPT_FILENAME=/usr/local/nf/share/cgi/printenv HTTP_CACHE_CONTROL=max-age=259200 HTTP_HOST=r3bol.netfirms.com REQUEST_URI=/cgi/printenv HTTP_X_FORWARDED_FOR=172.16.221.90, 192.107.218.218 HTTP_NFUSERADDR=192.107.218.218 SERVER_SOFTWARE=Apache/1.3.26 (Unix) mod_perl/1.26 HTTP_CONNECTION=close HTTP_COOKIE=nfreferstat=http%3A%2F%2Fnetfirms.com%2F PATH=/usr/local/bin:/usr/bin:/bin HTTP_X_FORWARDED_SERVER=w11 HTTP_ACCEPT_LANGUAGE=fi SERVER_PROTOCOL=HTTP/1.1 HTTP_X_FORWARDED_HOST=r3bol.netfirms.com SCRIPT_URI=http://r3bol.netfirms.com/cgi/printenv SCRIPT_URL=/cgi/printenv REQUEST_METHOD=GET SERVER_ADMIN=support@netfirms.com SERVER_PORT=80 SCRIPT_NAME=/cgi/printenv HTTP_VIA=1.0 oukasrv38.ouka.fi:8080 (squid/2.5.STABLE1) SERVER_NAME=r3bol.netfirms.com
Would it be here?

Logged

Guest
Guest


Email
Any free hosting service for rebol ?
« Reply #14 on: September 14, 2005, 05:50:33 AM »

Maybe

DOCUMENT_ROOT=/mnt/web_m/d09/s13/b025a4c8

The full path to your cgi-bin directory would be:
"$ENV{'DOCUMENT_ROOT'}/cgi-bin"
Logged
Pages: [1] 2 Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Any free hosting service for rebol ?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 11:11:44 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2287 Posts in 593 Topics by 3730 Members
Latest Member: forimpotence

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc