Cheyenne Web Server Blog

Recent Articles:

19-Feb-2008 - Binaries for v0.9.18 [0017] 6 Cmts
19-Feb-2008 - Cheyenne v0.9.18 released [0016]
21-Dec-2007 - HOW-TO make Cheyenne work with PHP for non-Windows OS [0015] 3 Cmts
21-Dec-2007 - Encapped binaries also available for v0.9.17 [0014] 5 Cmts
21-Dec-2007 - Cheyenne v0.9.17 released [0013] 7 Cmts
31-Jul-2007 - Short update on Cheyenne rc1 status [0012] 8 Cmts
13-Jul-2007 - Better PHP support [0011] 9 Cmts
13-Jul-2007 - Cheyenne v0.9.16 released [0010] 0 Cmts
21-Jun-2007 - Cheyenne v0.9.15 released [0009] 0 Cmts
11-Jun-2007 - Cheyenne v0.9.14 released [0008] 0 Cmts
6-Jun-2007 - Cheyenne v0.9.13 released [0007]
Contents - Index of all articles.

19-Feb-2008 - Binaries for v0.9.18 [0017]

OS Encapper Size Download link
Windows enface 649Kb download
Windows enpro 452Kb download
Linux enface 872Kb download
Linux enpro 534Kb download
Mac OS X enface 873Kb download
Mac OS X enpro 572Kb download

6 Comments


19-Feb-2008 - Cheyenne v0.9.18 released [0016]

Post Comments


21-Dec-2007 - HOW-TO make Cheyenne work with PHP for non-Windows OS [0015]

The purpose of the following patch is to make FastCGI in PHP work the same on all OSes.

1) If you have PHP v5.2.1 or higher with sources, you can skip 2) & 3) else :
2) Download latest PHP sources from http://www.php.net/downloads.php
3) Untar the archive anywhere you want
4) Go to PHP install folder
5) Patching PHP source :

Open a REBOL console, then :
;---- cut'n paste the following code in REBOL's console ----

patch-php: has [buffer pos][
	target: %sapi/cgi/fastcgi.c
	if none? attempt [buffer: read target][
		print "unable to find the file to patch!!"
		exit
	]
	either parse buffer [
		thru "int fcgi_accept_request("
		to "if (req->fd >= 0) {"
		pos: to end
	][
		insert pos "^/^-^-^-^-break;^/^-^-^-^-"
		write target buffer
		print "patch applied."
	][
		print "failed to locate the line to patch!!"
	]
]

patch-php
;---- end of code ----
6) Once the patch is applied :
	> ./configure --enable-fastcgi
	> make
	> sudo make install
7) Check if everything is ok :
	> php-cgi -h
	...
	you should see a -b option listed meaning you got proper
	FastCGI support.
	
	If it fails (occured on OSX), try with a full path instead :
	
	> /usr/local/bin/php-cgi -h
8) Edit Cheyenne's config file (httpd.cfg) to set the correct option in the PHP section. Non-Windows users have to also set the new 'delay option.
9) Test if all works well with : http://localhost/test.php

3 Comments


21-Dec-2007 - Encapped binaries also available for v0.9.17 [0014]

Cheyenne beta v0.9.17 encapped binaries (with enface) are also available for testing :


Remember that Linux and OSX versions require root privileges to listen on ports < 1024.

For linux users that don't have X11 installed, the released binary won't work unless you install the X11 support libraries.

Here's how-to install the required libs without installing a full X11 desktop (Debian/Ubuntu users only) :

  > apt-get install libx11-6
  > apt-get install libxaw7
  > apt-get install libstdc++5
  > apt-get install libfreetype6

5 Comments


21-Dec-2007 - Cheyenne v0.9.17 released [0013]

7 Comments


31-Jul-2007 - Short update on Cheyenne rc1 status [0012]

As you might have noticed, the development and releases cycle rate has reduce since a couple of weeks because I'm now only part time on Cheyenne. I've been called to work on some big projects for new customers, so I'll be able to work on REBOL projects only 1 or 2 days per week. That was the "bad" news. The good news is that Cheyenne is very close to 1.0 release candidate 1!

I've been working these last weeks, part time, on the Cheyenne administration web-based console, it took me a lot of time to come up with the UI design that best suit my needs, and it still needs a lot of work to be finished. I'm not sure that this administration application will make it for 1.0. Here are some screenshots of the work-in-progress (click to enlarge):

   


If all goes well, the 1.0 rc1 should be released next Sunday. Then the true beta stage will start until the 1.0 gets stable enough for production (I guess a month would be enough to fix all major bugs). In the meantime, I'll produce the longly awaited documentation.

8 Comments


13-Jul-2007 - Better PHP support [0011]

Starting from v0.9.16, PHP support is now much more stable and easier to set up. You just need to uncomment the following lines in the HTTPD.CFG file :
    ;if-loaded? mod-extapp [
    ;    extern-app [
    ;        name    php-fcgi
    ;        url     fastcgi://localhost:9999
    ;
    ;        command "..\php\php-cgi.exe -b 127.0.0.1:9999"	
    ;
    ;        environment [
    ;            PHP_FCGI_MAX_REQUESTS  0
    ;            PHP_FCGI_CHILDREN      1
    ;        ]
    ;	 ]
    ;]
Then change the command argument to match the name and installation path of your php-cgi executable. Path can be relative or absolute, but need to be formatted accordingly to your local filesystem and not in REBOL file format.

You can also change the listening port if it conflicts with another server. Change it both in url and command.

Launch Cheyenne, the PHP process will be launched at the same time. It will also be killed by Cheyenne on exiting. (On Windows platforms in console mode, use the Quit option in the systray menu).

If you need to launch the PHP process manually, comment the command line and follow the instructions here.

Note also, that you can have more than one php-cgi process, but the process pooling management is not yet implemented. To control the number of threads (Windows) or processes (UNIX), just set the PHP_FCGI_CHILDREN parameter to the number you want. If you don't know what this is about, just leave the default value (1). Even then, it can handle dozens of concurrent requests (thanks to the fastcgi multiplexing support added to Cheyenne 0.9.16).

9 Comments


13-Jul-2007 - Cheyenne v0.9.16 released [0010]

0 Comments


21-Jun-2007 - Cheyenne v0.9.15 released [0009]

0 Comments


11-Jun-2007 - Cheyenne v0.9.14 released [0008]

0 Comments

View index of all articles...