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
5-Jul-2007
[1866x6]
;	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?
Dockimbel
5-Jul-2007
[1889]
Testing with Cheyenne 0.9.15 and php, I got a 404 on test.php...
Pekr
5-Jul-2007
[1890x2]
no luck with php here. Will have to try with Apache and php install 
(non-zip) version ....
ah, so maybe some new bug?
Dockimbel
5-Jul-2007
[1892]
Binary Cheyenne doesn't display taskbar, only the systray icon.
Graham
5-Jul-2007
[1893]
with source code cheyenne you get 3 rebol consoles.  but with encapped 
cheyenne, you only get one cheyenne instance,  is that correct?
Pekr
5-Jul-2007
[1894x3]
3 consoles? Why 3? I get one ...
damned, I am dumb .... uh ... wait a min ....
hmm, I had my own content in www dir, no test.php. I copied it there, 
but still no luck ....
Dockimbel
5-Jul-2007
[1897]
Ok, it's working now, I forgot to set the full path in httpd.cfg.
Pekr
5-Jul-2007
[1898x2]
you have my httpd.cfg above - does it seem to be configured properly? 
my php is coming from .zip, I copied it to c:\php, went to this directory, 
typed php-cgi -b 999 (enter)
then started cheyenne. It runs ok, as it serves my pages ... but 
no luck with test.php
Dockimbel
5-Jul-2007
[1900x4]
Your config seems ok to me.
Try rebooting your browser if you're using IE.
Graham: yep 3 console if no in 'quiet mode (default is quiet, so 
only 1 console then). In encapped, it depends on the encap headers, 
you should have one by default (can be removed by using the 'no-window 
encap option in headers).
...3 consoles if not in...
Pekr
5-Jul-2007
[1904]
shouldn't I set docroot also in php.ini?
Dockimbel
5-Jul-2007
[1905x2]
You can try that (but it should not be required if you're running 
PHP from the ZIP package).
Does your browser timeout on test.php or does it return a 404 ?
Pekr
5-Jul-2007
[1907x3]
there is no php.ini, just php.ini-dist, php.ini-recommended
no, it does not.  OK, I will delete my website and put back whole 
your testing environment ...
hmm, no luck here, I give up on php. Whole other Cheyenne content 
runs ....
Dockimbel
5-Jul-2007
[1910]
php.ini is optional
Pekr
5-Jul-2007
[1911]
the strange thing is, that it is waiting for timeout for so long, 
but it does not display 404 page ...
Dockimbel
5-Jul-2007
[1912]
Are you on Vista ?
Pekr
5-Jul-2007
[1913]
yes
Dockimbel
5-Jul-2007
[1914]
Are you allowed to connect locally on port 9999 ?
Pekr
5-Jul-2007
[1915]
hopefully so. First time I run php-cgi firewall asked me if I want 
to allow the port