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

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Dockimbel
1-Jun-2007
[758x2]
Cheyenne v0.9.11 Beta released : http://softinnov.org/tmp/cheyenne-r0911.zip
Several bugs fixed (including the sixteen.html counter bug). RSP 
API documentation updated and fixed, 75% completed, still needs some 
work to finish.
btiffin
1-Jun-2007
[760]
I'm still getting

Redirection Catched
Destination url: /testapp/
For all RSP related activity.
GNU/Linux 2.7.5.4.2  IceWeasel (Firefox) browser and Konqueror

Modified HTTPd.r for port 8080, run cheyenne.r off terminal session 
with
rebol -cswq cheyenne.r
Dockimbel
1-Jun-2007
[761]
That's because the DEBUG mode is activated by default in these beta 
releases. To get ride of it, just edit the httpd.cfg file , find 
the webapp "/testapp" option block and remove the 'debug keyword 
 (then restart the server).
Terry
1-Jun-2007
[762]
well, i don't know what Im doing wrong, but after i log into testapp, 
then run testapp/sixteen.html.. i still get booted back to login 
(latest version)
btiffin
1-Jun-2007
[763x2]
Yep...loops around.
With debug, Redirection Catched.
Without  loops to login screen over and tover
Dockimbel
1-Jun-2007
[765]
Terry, it seems that's a issue with the way the request pipelining 
and multiplexing is done by some browser. I've plan to fix that this 
weekend.
btiffin
1-Jun-2007
[766]
Love the work Doc.  Everything else works great, in terms of serving 
web stuff.

peoplecards.ca has been running now live for two weeks.  But right 
now I have to go

play poker.  I'll chat with Will to see if we can't nail down the 
setting that is 
causing this...
Thanks much.  For lots and lots.
Dockimbel
1-Jun-2007
[767x2]
Brian, I can't reproduce this behaviour on my Windows box whatever 
browser I use. I'll try on a linux box tomorrow morning.
PHP interfacing revealed : http://softinnov.org/cheyenne/blog.cgi?view=0005
Terry
1-Jun-2007
[769]
Well.. it's still looking really great.. love the module methods.. 
very clean.
Im going to deciated 2-3 hours a day building mods ;)
Maxim
2-Jun-2007
[770]
doc, I think I'll give this latest version a spin... is it as easy 
as apache to get working?
Chris
2-Jun-2007
[771]
Easier, much easier.
Robert
2-Jun-2007
[772]
Gabrielle, what's "CGI emulation mode"? Is it CGI mode or TCP/IP 
mode connected to FastCGI?
Terry
2-Jun-2007
[773]
Not having much luck with PHP... test.php would rather download than 
execute.
Gabriele
2-Jun-2007
[774]
robert, by default Command does fast cgi in cgi emulation mode. this 
way nothing changes for the cgi script except that words/values persist 
across invocations.
Robert
2-Jun-2007
[775]
Ah, didn't know that. So, I run the RS server part via command and 
see what happens. Will do so.
Gabriele
2-Jun-2007
[776x5]
yep.
could just mean renaming your .cgi file to .fcgi.
the shebang stays as usual (command -cs)
command will detect tha apache called it as fastcgi and will stay 
running
apache may run n of them though, so be careful with concurrency issues 
on files you access from services.
Robert
2-Jun-2007
[781x2]
ok, thanks.
Alsways do a fast COMMIT ;-) and no nested transactions.
Terry
2-Jun-2007
[783x6]
Ok.. PHP is running on XP.. 
uncomment this line in httpd.cfg

bind fastcgi to [.php .php3 .php4]
So Nenad, are you considering a more native PHP implemenation to 
increase performance?
It will be interesting to see what kind of mashups we can do between 
Rebol and PHP.
I've found PHP's XML handling particularily nice.
Nenad, would there be some way to post-process the php?
Possible to make the PHP handler a module as well?
PHP's mem footprint is relatively small .. around 5mb...  whereas 
Cheyenne appears to be running 3 instances of Rebol  totalling 25mb.
Gabriele
2-Jun-2007
[789]
that's funny, because www.rebol.net has been running for years with 
many rebol cgi stuff, this altme world, ios servers etc. without 
ever touching the swap. as soon as we installed mediawiki, with just 
me and carl using it, it started swapping. :)
Terry
2-Jun-2007
[790]
Any sort of heavy load causes php-cgi.exe to crash...
Dockimbel
2-Jun-2007
[791]
Pre or post-processing PHP: currently it would require a dedicaded 
mod to achieve that.
Terry
2-Jun-2007
[792x2]
Seems like a 'best of both worlds'
Another thing to note when downloading the PHP binaries is renaming 
the php.ini-dist file to php.ini
Graham
2-Jun-2007
[794x4]
Looks my old rsp application needs a few changes to run under this 
version of cheyenne
do-sql ?
Is a connection opened somewhere to a sql database?
Or, do I edit cheyenne.r to do that?
Dockimbel
2-Jun-2007
[798x3]
Right, using 'do-SQL makes Cheyenne manage the connection for you. 
You need to define your DB connections specs in the httpd.cfg file, 
like this for example :
databases [
		bugs	mysql://[root-:-localhost]/bugs
		forum	mysql://root:[admin-:-localhost]/forum
		test	mysql://[root-:-localhost]/test
	]
then, if you're not using RT's DB drivers, you need to load your 
driver somewhere : %misc/rsp-init.r or %www/your-app/app-init.r (if 
you've defined a webapp) are good places to do so.
Graham
2-Jun-2007
[801x2]
this is a lot more complicated than the 2005 version :)
so, to send a query to "bugs" ?
Dockimbel
2-Jun-2007
[803x2]
DO-SQL syntax : do-sql [db [word!] data [string! block! word!] /flat]
The RSP engine will do all the opening/closing work for you
Graham
2-Jun-2007
[805x2]
why do you want to close the db connection?
Can't you leave it open all the time?
Dockimbel
2-Jun-2007
[807]
re 2005 version: you're don't need to use do-sql if you don't want 
to. You can do it as usual by opening connection, sending query...closing 
connection. do-sql is just a higher level wrapper to save you some 
time.