If you want your PHP apps running side by side with your CFM apps on Jetty+OpenBD, not Resin, the simple way is using Caucho Qurques. The folks behind the Resin application server have the ubiquitous of PHP and have developed Quercus, a PHP 5 implementation written in Java, that provides a Java-based PHP interpreter. Quercus is available with the latest Resin but it is also available for download as a WAR file which can be deployed on Resin or other application Servers such as Jetty.
1. Download Qurques war file from http://quercus.caucho.com/. Unzip "quercus.war" file(quercus.jar, resin-util.jar, script-10.jar) to /usr/ local/jetty/lib (on Linux). 2. Edit "webdefault.xml" file (/usr/local/jetty/etc/webdefault.xml), and add with this: <servlet> <servlet-name>Quercus Servlet</servlet-name> <servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet- class> <!-- Specifies the encoding Quercus should use to read in PHP scripts. Uncomment this if you're having "invalid utf-8" errors. --> <!-- <init-param> <param-name>script-encoding</param-name> <param-value>ISO-8859-1</param-value> </init-param> --> <!-- Tells Quercus to use the following JDBC database and to ignore the arguments of mysql_connect(). --> <!-- <init-param> <param-name>database</param-name> <param-value>jdbc/test</param-value> </init-param> --> <!-- <init-param> <param-name>php-ini-file</param-name> <param-value>WEB-INF/php.ini</param-value> </init-param> --> </servlet> <servlet-mapping> <servlet-name>Quercus Servlet</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping> 3. Test your Jetty OpenBD server with PHP code, like this simple one: <?php phpinfo(); ?> (info.php). --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official blog @ http://blog.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
