Check out the Red programming language from the same author

Better PHP support

Nenad Rakocevic - Softinnov
13-Jul-2007 9:23:15 GMT

Article #11
Main page || Index || 2 Comments

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"	
    ;        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).

© Nenad Rakocevic - Softinnov