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

Graham
27-Jun-2007
[1839x5]
curl seems to work
curl -k -F upload=@test.ps -F press=OK https://www.compkarori.co.nz/show.cgi
So, I guess this means it's a Rebol https problem :(
Wasn't Gabriele asking for people to test a new http(s) protocol 
??
Does anyone wish to independently confirm my findings with https?
Graham
28-Jun-2007
[1844x4]
Rebol []

data: copy/part read %test.ps 1024
content: copy data
for i 1 100 1 [
	cnt: i * 1024

 page: read/custom https://www.compkarori.co.nz/cgi-bin/measure.rsp
 reduce  [ 'post join "content=" content ]
	parse page [ thru <data> copy received to </data> ]
	either found? received [
		received: to integer! trim received 
		either received = cnt [
			print [ "OK at " cnt ]
			append content data
		][
			print [ "oops .. failed at " cnt ]
			break
		]
	][
		print "failed to read ... "
		halt
	]
]
http continues okay.
https fails at 15360 bytes
and measure.rsp is ..

<html>
<body>

<%
	either content: select request/content 'content [
		print [ <data> length? content </data> ]
	][
		%> Nothing was sent! <%
	]
%>
</body>
</html>
narrowed it down further ..16376 is okay, 16377 bytes fails
Pekr
28-Jun-2007
[1848]
hehe, how can I simulate virtual-host on localhost? :-)
Dockimbel
29-Jun-2007
[1849]
locally define your DNS names in your hosts file (/etc/hosts or C:\WINDOWS\system32\drivers\etc\hosts) 
to be able to simulate locally virtual-hosts.
Graham
29-Jun-2007
[1850]
Doing some more testing... not even sure http is okay.
Pekr
29-Jun-2007
[1851]
ah, thanks!
Graham
30-Jun-2007
[1852x2]
Does the current version of Cheyenne encap?  I tried and I get a 
windows exception when I run the encapped version.
Using 2.6.2.  Downloaded 2.7.5 and same result.
Dockimbel
2-Jul-2007
[1854]
Encmd crashes if 'title keyword is used in 'encap header. It works 
correctly with enpro and enface. So just remove from encap header 
: title "Cheyenne" and it will work.
Graham
3-Jul-2007
[1855]
Thanks .. and that is so strange!
Pekr
5-Jul-2007
[1856]
trying to run php ... how should I configure my fastcgi section properly?

	extern fastcgi [
		command	 "php -b $port"
		pool 	 min 1 max 4
;		server	 192.168.0.100 ; port 1234
;		root-dir "/home/dk/fcgi/"
	]
] 

what is server ip and rootdir here?
Dockimbel
5-Jul-2007
[1857x2]
No, these parameters are not yet used. This page explains how it 
to make Cheyenne work with PHP : http://softinnov.org/cheyenne/blog.cgi?view=0005
Pekr, does it work now ?
Pekr
5-Jul-2007
[1859x2]
there is no localhost section in my httpd.cfg
Doc, why do I need to set-up full path? That limits usage on USB 
stick for e.g., simply moving Cheyenne around. Is it because of PHP?
Dockimbel
5-Jul-2007
[1861]
Because, the interfacing with PHP is still under development and 
lacks full path resolution in mod-fastcgi. Remember, that the PHP 
support is not a production-level feature, it's in alpha stage !
Pekr
5-Jul-2007
[1862x2]
well, does not work either .... :-)
I run php-cgi -b 999 and also set root-dir to full path ....
Dockimbel
5-Jul-2007
[1864x8]
did you uncomment the 'fastcgi lines in httpd.cfg ?
This one :
;	fastcgi
in modules section have to be uncommented.
check also that this other line is not commented :
bind fastcgi to [.php .php3 .php4]
Btw, it's php-cgi -b 9999 (not 999)
Cheyenne bugtracking : http://softinnov.org:8000/curecode/project.rsp?id=4
Pekr
5-Jul-2007
[1872x2]
It is undocumented by default ....
it was a typo. Yes, it is 9999 port
Dockimbel
5-Jul-2007
[1874]
CureCode has still some minor bugs, but it's stable enough to do 
the job, so let's use it now for bug reporting.
Pekr
5-Jul-2007
[1875]
all extern factgi section should be commented, right?
Dockimbel
5-Jul-2007
[1876]
yep
Pekr
5-Jul-2007
[1877x3]
modules [
;	userdir
	internal
	static
	action
	fastcgi
	rsp
	ssi
	alias
;	embed
]

globals [
	bind SSI to [.shtml .shtm]
	bind fastcgi to [.php .php3 .php4]
	
	bind-extern CGI to [.cgi .r]
	bind-extern RSP to [.j .rsp]
	
;	user  nobody
;	group nobody

]

default [
	root-dir  %/c/!Docs-private/Xidys/cheyenne-r0914/Cheyenne/www/
	
	default [%index.html %index.rsp %index.php]
	
	on-status-code [
		404	  "/custom404.html"
	]
	
	webapp [
		virtual-root "/testapp"
		root-dir %www/testapp/
		auth "/testapp/login.rsp"
		debug
	]
	
;	"/" [
;		redirect http://softinnov.org
;	]
	
;	extern fastcgi [
;		command	 "php -b $port"
;		pool 	 min 1 max 4
;		server	 127.0.0.1 ; port 1234
;		root-dir "/home/dk/fcgi/"
;	]
] 

;rebol.si.org [
;	root-dir %//dev/si-org/old/
;	default %main.html
;	
;	redirect 301 "/mysql*" "http://si.org/rebol/mysql.shtml"
;	redirect 301 "/rebox*" "http://si.org/rebol/rebox.shtml"
;	redirect 301 "/"	   "http://si.org"
;]

; ###
; To add a new virtual host just duplicate and fill the following
; example host :
;
; my.vhost.com [
;	root-dir %/www/			; documents root directory
;	default [...]			; default files
; ]	
; ###
sorry for spamming ;-)
php version 5.2.3.
Dockimbel
5-Jul-2007
[1880]
should be ok, what the browser says on http://localhost/test.php
?
Pekr
5-Jul-2007
[1881]
does something for a long time ... but will probably timeout ...
Dockimbel
5-Jul-2007
[1882]
btw, you have to run PHP first, then launch Cheyenne.
Pekr
5-Jul-2007
[1883x2]
done. I shouls install Ethereal, but not sure I can watch on packets 
on localhost anyway. Running Vista here ....
btw - can I prevent PHP black Window to pop-up?
Dockimbel
5-Jul-2007
[1885x3]
Last time I've checked, Ethereal can capture packets on localhost.
No, that's the DOS window where you're running php. Cheyenne 1.0 
will handle PHP launching in bg.
sorry: can't
Pekr
5-Jul-2007
[1888]
and can Cheyenne taskbar window be avoided? Well, I run from source 
version, so maybe it will be possible with binary distro?