From: <php...@li...> - 2011-01-20 16:43:32
|
I am trying to deploy JavaBridge to both WebSphere Express and the Integrated Application Server on IBM i OS V6R1 so that I can run BIRT reports and charts from my Zend PHP scripts on the iBM i. When I start the JavaBridge application I get this in the stderr logs for both servers: Fatal Error: Failed to start PHP [php-cgi, -v], reason: java.io.IOException: php-cgi: not found Could not start FCGI server: java.io.IOException: PHP not found. Please install php-cgi. PHP test command was: [php-cgi, -v] Timeout waiting for PHP FastCGI daemon php.java.bridge.http.FCGIConnectException: Could not connect to server at php.java.bridge.http.SocketChannelFactory.test(SocketChannelFactory.java:58) at php.java.bridge.http.FCGIConnectionPool.<init>(FCGIConnectionPool.java:175) at php.java.bridge.http.FCGIConnectionPool.<init>(FCGIConnectionPool.java:189) at php.java.servlet.ContextLoaderListener.createConnectionPool(ContextLoaderListener.java:541) at php.java.servlet.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:185) .... I created a symbolic link in the WEB-INF/cgi/powerpc-os directory called php-cgi-arch-os that links to the /usr/lcoal/zendsvr/bin/php-cgi executable that runs on IBM i and I can invoke in a shell.. The app server can't seem to find however.. Any one seen this on other platforms ? Jon Rush Technical Consultant STG ISV Enablement: http://www.ibm.com/partnerworld/systems/isv Rochester, MN (507)253-5099 (tieline 553-5099) jr...@us... |
From: <php...@li...> - 2011-01-20 18:37:28
|
Hi, I think you'll have to add it to your .war archive and re-deploy it. Regards, Jost Bökemeier Am 20.01.2011 17:43 schrieb <php...@li...>: |
From: <php...@li...> - 2011-01-21 17:04:52
|
Jost, I tried putting the php-cgi executable from the IBM i Zend Server bin library into the .war file and redeployed. Same error: "Fatal Error: Failed to start PHP [/bin/sh, /QIBM/UserData/WebSphere/AppServer/V61/Base/profiles/WAS61SVR/installedApps/em15a_WAS61SVR/JavaBridgeIBMi252V4_war.ear/JavaBridgeIBMi252V4.war/WEB-INF/cgi/powerpc-os/php-cgi.sh" I put the php-cgi into the WEB-INF/cgi directory or should it go into the WEB-INF/cgi/powerpc-os directory ? I tried both, same result..... Jon Rush Technical Consultant STG ISV Enablement: http://www.ibm.com/partnerworld/systems/isv Rochester, MN (507)253-5099 (tieline 553-5099) jr...@us... From: php...@li... To: php...@li... Date: 01/20/2011 12:37 PM Subject: Re: [Php-java-bridge-users] phpCGIservlet can't start php-cgi on IBM i Hi, I think you'll have to add it to your .war archive and re-deploy it. Regards, Jost Bökemeier Am 20.01.2011 17:43 schrieb <php...@li...>: ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2011-01-21 18:21:41
|
Please use java -classpath JavaBridge.war TestInstallation, see install instructions for details. If it reports that php is missing, please install php. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-01-25 14:45:23
|
Jost, java -cp JavaBridge.war TestInstallation works fine. the RESULT.html file looks good. So if this works and cna use the phpCGIservlet (and FAST CGI) capability why can't WebSphere start the phpCGIservlet indicating php can't be found ? Jon Rush Technical Consultant STG ISV Enablement: http://www.ibm.com/partnerworld/systems/isv Rochester, MN (507)253-5099 (tieline 553-5099) jr...@us... From: php...@li... To: php...@li... Date: 01/21/2011 12:22 PM Subject: Re: [Php-java-bridge-users] phpCGIservlet can't start php-cgi on IBM i Please use java -classpath JavaBridge.war TestInstallation, see install instructions for details. If it reports that php is missing, please install php. Regards, Jost Bökemeier ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2011-01-25 21:05:29
|
Hi, maybe it doesn't have the permission. Or your shell isn't a bourne shell. You can try to uncomment set -x from the launcher.sh to see some debug info. If everything fails use apache to run php. |