Running REBOL on HostGator...
[1/4] from: carl:cybercraft at: 29-Sep-2010 8:36
Hi all,
Prompted by Tim's recent post about web hosting, I thought I'd mention my experience
with getting REBOL scripts running on hostgator.com. I'd planned to do this after I had
some serious scripts running on my site, but I haven't got that far yet. However, test
scripts have worked and I've a cron-job running, so I know the basics work.
Firstly, before signing up, I'd asked HostGator if it was okay for REBOL to be installed
on a website hosted by them. Their reply was: "Yes, that executable can be installed
locally on your account. And assuming it was compiled in such a manner as to function
with our systems, it should run without error."
The reason I thought HostGator might allow this was because of this thread...
http://rebolforum.com/index.cgi?f=printtopic&topicnumber=15&archiveflag=archive
Next, I needed to know what version of REBOL to run, the answer being here...
http://support.hostgator.com/articles/pre-sales-questions/are-your-servers-unix-linux-or-windows-nt
So, "CentOS Linux x86", aka "Red Hat Linux", which equates to REBOL/Core for "Linux x86
Fedora". (Fedora being 'sponsored' by Red Hat.)
HostGator sites come with cPanel installed, and I used cPanel's file-manager to place
REBOL/Core on the site, the file-manager also handling the .tar.gz unpacking. I then
followed the instructions here...
http://www.rebol.com/docs/cgi1.html#section-7
to set the permissions and get scripts running. (The cPanel file-manager can be used
to set permissions.) And as described in the rebol.com docs linked to above, the following
is the format to use in the first line of your REBOL cgi scripts...
#!/home/your-account/rebol -c
Your scripts' file-names need to use a .cgi extension to run, but they can be placed
anywhere on your site, not just in the cgi-bin directory. (It's possible they could be
made to work with a .r extension, but I've not looked into that/asked about it.)
Finally, I used cPanel to get cron scripts running. The path for a cron script is of
the following format...
/home/user-name/dir-path/cron-script.cgi
All in all, this proved to be reasonably hassle-free and the HostGator responses prompt
and helpful. (Albeit before I'd signed up, I not needing to ask for any REBOL-related
help since.)
Hope that's of some use to someone. (And that there's nothing important I left out. Feel
free to ask any questions, anyway.)
-- Carl Read.
[2/4] from: semseddinm:bircom at: 29-Sep-2010 11:21
Hi, thanks for the information.
I'm using Rebol on Hostgator for testing. Here is a running example:
http://moldibi.com/cgi-bin/test.r
-Carl: Could you post these explanations to rebolforum as well.
Wed, 29 Sep 2010 10:54:05 +0300 tarihinde Carl Read
<carl-cybercraft.co.nz> şöyle yazmış:
[3/4] from: carl:cybercraft at: 29-Sep-2010 20:51
On Wednesday, 29-September-2010 at 11:21:38 =?iso-8859-9?B?3mVtc2VkZGluIE1vbGRpYmk=?=
wrote,
>Hi, thanks for the information.
>I'm using Rebol on Hostgator for testing. Here is a running example:
>http://moldibi.com/cgi-bin/test.r
That's working for me. Did you need to change anything for the .r extension to work?
>-Carl: Could you post these explanations to rebolforum as well.
I'm unsure if I've an account at rebolforum, but the post is showing up here...
http://www.rebol.org/ml-display-message.r?m=rmlKJPF
so you could post a link to that if you want.
-- Carl Read.
[4/4] from: semseddinm:bircom at: 30-Sep-2010 10:40
> That's working for me. Did you need to change anything for the .r
> extension to work?
I added r extension as application/cgi to mime type.
> I'm unsure if I've an account at rebolforum, but the post is showing up
> here...
> http://www.rebol.org/ml-display-message.r?m=rmlKJPF
> so you could post a link to that if you want.
You don't need an account for that forum.
I posted your link under Rebol CGI Hosting topic.
Thank you.
Sems