CF and PHP at the same time

For a clinical research project I need a fast webserver that understands both COLD FUSION (for the existing database stuff) and PHP (for dokuwiki). As this is a non-commercial project, I decided for the RAILO 2.0 community version that works right out of the box as it includes the Resin webserver and the H2 database as well. Following some recommendations found on the net, php is running now with with the fastcgi option showing good acceptable performance with eAccelerator.

php.cmd

 1:
 2:
 3:
 4:
 5:
 6:
 7:
 8:
 9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
23:
@echo off

rem install php with this option
rem msiexec /i php-5.2.6-win32-installer.msi /q ADDLOCAL=cgi,ext_php_mysqli

rem check for right version
rem php-cgi -v

rem now run php on dedicated port
php-cgi -b 8002

rem let railo know in x:\railo\conf\app-default.xml
rem  <servlet servlet-name="php"
rem           servlet-class="com.caucho.servlets.FastCGIServlet">
rem    <init>
rem      <server-address>localhost:8002</server-address>
rem    </init>
rem  </servlet>
rem  <servlet-mapping url-pattern="*.php" servlet-name="php"/>

pause
exit