r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[CGI] web server issues

François
6-Aug-2005
[248]
By static I mean the Web Server takes care to create as many VM instances 
as needed within the min and max nb of instances allowed by the web 
master.
Pekr
6-Aug-2005
[249x2]
that is dynamic, no?
by what you mean by static does not work with apache on windows anyway 
...
François
6-Aug-2005
[251]
You are right. So i will try on Apache Linux. It shoud work as I 
succeeded with both lighttpd and litespeed. By the way, these two 
web server are very good and so easy to configure (specially LiteSpeed)...
Luca
19-Aug-2005
[252x4]
I'd like to let my cgi script to be easy portable. I already moved 
them twice on tree different unix-like OS successfully, but I had 
always the problem of the first row. If in the first row I wrote 
#!/usr/local/rebol/rebol -c I need, in the new hosting OS, to have 
Rebol installed in thet dir. But this is not always true (or simple 
to set up). So I'd like to use a "portable syntax". Now, I did various 
tests but I couldn't find a solution. I already tryed:
1) #!/scripttorebol, where  "scripttorebol" is a script containing 
#!/usr/local/rebol/rebol -c on the first row. But it doesn't work 
because the rebol code is even interpreted by the OS shell
2) #!/bin/bash and in the second row 'exec /usr/local/rebol/rebol 
-c "$0" "$@" '. Rebol starts correctly but it raise an error because 
the script does not have  a rebol[] header (that is on the following 
lines)
Is there any unix guru who can help me? Thank you
JaimeVargas
19-Aug-2005
[256x3]
How about an symbolic link.
(ln -s <src-file> <target-file>)
(#!/link-to-rebol -c)  where link-to-rebol is a link where the actual 
location of the rebol interpreter.
Volker
19-Aug-2005
[259x2]
prepare your upload with rebol and replace some things server-specific.

  write %dst/cgi/script.r join "#!/here/is/rebol^/" read src/script.r
2) should work too, you need a header, but you can put as many lines 
before it
!/bin/bash
exec /usr/local/rebol/rebol -c "$0" "$@" 
rebol[]
Gabriele
21-Aug-2005
[261]
about 2, if you know what to put after exec, you should know what 
to put in the shebang too, no?
Luca
22-Aug-2005
[262x5]
Ok I simply choosen a complicated way.
Gabriele: I meant to put after the exec the path to a script file. 
It didn't work because I wrote it in the wrong way. Now I modified 
it and it work.
Volker: What you suggested could be a solution but I should write 
a migration utility, not so simple in a complex environment.
Jaime: Probably it is the best solution. I was trying to reach the 
same result thru a script file but the result is the same and create 
a link is the fasted method.
Thank you all.
Ingo
23-Aug-2005
[267x2]
Does anyone have exoerience with CMS's with Rebol cgi? How do they 
scale compared to the usual suspects? (the three "P"s Perl/Python/Php) 
(Maybe that's the biggest hurdle to worldwide Rebol adoption: it 
doesn't start with a "P" so can't easily replace any of the aforementioned 
languages in the LAMP acronym ... Any chances of renaming Rebol to 
Pebol?)
What I'm thinking about is a webpage with several interconnected 
hierarchies ... e.g.

Germany
     Hassia
         Wiesbaden
         Frankfurt
     Bavaria
    .....

Music
   strings
        viola
        guitar
   ....


so you could search for Music in Bavaria, or strings in Germany, 
or ...
Pekr
23-Aug-2005
[269]
REBOL  is nice name - they should change to "R" instead ;-)
Geomol
23-Aug-2005
[270]
as in Rerl/Rython/Rhp? :-D
Sunanda
23-Aug-2005
[271]
Do you mean a CMS written in REBOL?

REBOL CMSes? Not sure there are any as such. It'd be good to have 
a generally available and scalable Rebol CMS.


As an example of what is possible, have a play with the various indexes 
here (topic, date, author, subject)
http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-index.r
That's 50+meg of data, 42500 messages. All handled in pure REBOL.
Ingo
23-Aug-2005
[272x4]
Yes, a CMS written in Rebol would really be nice, so that I understand 
it. (unless it's written by one of the Rebol magicians ;-)
I have some ideas cooking in that respect, but so far haven't really 
started to work on it.
I'll have a look at the index pages.
Pekr/Geomol: That's even better! After Rerl/Rython/Rhp Rebol would 
come naturally :-D
François
26-Aug-2005
[276x4]
Hi, for those interested, a modified and slightly improved version 
of Magic! for FastCGI is available on www.rebolgique.net....
Amongst other things new tags are handled (<rebol:if>, <rebol:forall>) 
and it has been integrated with log4reb.
The Rebol Directory Project (www.rebolgique.net/rdir/) is an exemple 
of application developped with FastCGI and Rebol/Command. This application 
is in its early stage, but is intended to become a database with 
as much inforamtion as possible about the members of the rebol community...
Comments and suggestions are welcome. What would you like to see 
in such an application?
Graham
26-Aug-2005
[280]
You're missing Lady and Lord in that list of titles :)
François
27-Aug-2005
[281]
You are right, i will add them as soon as possible ;-)
Sunanda
27-Aug-2005
[282]
Looks good.

The problem with having a list of titles is you'll *never* think 
of them all [Ambassador, Brother, Comrade :-)] A type-in field would 
be more flexible.
François
27-Aug-2005
[283x2]
Well, i indeed think this is kind of silly. I will therfore limit 
to the 3M: Mister, Madam and Miss...
I will add a tab 'Projets' with sub-tabs 'All', 'Rebol', 'Non rebol' 
where a reboler can describe projects he/she made are intend to make...
Jean-François
27-Aug-2005
[285]
I would be curious to know what are Zip code called in other countries. 
Here in Canada we have postal codes. How about France, Germany, Italy, 
GB, etc...
Ashley
27-Aug-2005
[286]
Post codes in Australia (4 digits with the first indicating state 
... most of the time)
Gabriele
27-Aug-2005
[287x2]
CAP, Codice Avviamento Postale (postal startup code, no idea what 
startup has to do with it)
... for italy
Sunanda
27-Aug-2005
[289]
post code in the UK -- a convoluted combination of letters and digits 
with a space in the middle.
Ingo
27-Aug-2005
[290]
Postleitzahl (PLZ) in Germany, 5 digits, more or less starting with 
low numbers in the north, and ending with high numbers in the south.
Jean-François
28-Aug-2005
[291]
buy the way, the ZIP in Zip code stands for Zone Improvement Plan.


So, I guess when making an international form to input adress, we 
should maybe ask for "postal code" or " post code", it might be more 
generic then ZIP code.
yeksoon
28-Aug-2005
[292]
Zip = Postcode in Singapore (6digit)
Gregg
29-Aug-2005
[293]
Postal Code is a common generic term in UIs.
François
5-Sep-2005
[294]
The Rebol Directory Project has been updated... www.rebolgique.net
Volker
5-Oct-2005
[295]
what do i put in .htaccess to make rebol-files non-text/plain? and 
what return i in headers from cgi?
Sunanda
5-Oct-2005
[296]
This is what we do at REBOL.org:
 print "Content-Type: text/plain"
 print "Content-Disposition: attachment; filename=sqd.r"
You can see that one in action with this URL:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=sqd.r
james_nak
25-Oct-2005
[297]
I'm trying to set up rebol in my new host and I'm coming up with 
"Premature end of script headers" in the error log. "Server error 
500 " shows up in the browser, btw. I'm going through my usual  routine 
of error checking. Does anyone know what the permissions are for 
the cgi-bin directory are to be at. One time, long ago, I had this 
problem and fixed it with chmod. The files themselves are set to 
755.