Nenad Rakocevic - Softinnov 21-Dec-2007 20:34:04 GMT Article #15 Main page || Index || 1 Comment |
;---- 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 install7) 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 -h8) 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.