Nicht ausführen, PHP Skript unter Tomcat

Bin mit Tomcat 6. Ich habe PHP installiert und versuchen damit PHP läuft im Tomcat mit PHP/JavaBridge. Ich habe eingesetzt JavaBridge.Krieg innerhalb des Tomcat ' s webapps-Verzeichnis. Beim ausführen einer PHP-Skript, bekomme ich diese Fehlermeldung unten. Bitte um Hilfe und ich danke Euch für Eure Unterstützung.

Diese war, wie ich PHP konfigurieren:

./configure --with-mime-magic
--with-config-file-path=/usr/local/Zend/etc
--with-apxs2=/usr/local/apache2/bin/apxs
--with-libxml-dir=/usr
--with-mhash=/usr/local
--with-bz2=/usr
--with-curl=/usr
--with-gettext=/usr
--with-mysql=/usr/local/mysql
--with-mcrypt=/usr/local
--enable-magic-quotes
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-sockets
--enable-wddx
--enable-mbstring
--enable-zip
--enable-exif
--with-gd=/usr
--with-freetype-dir=/usr
--with-jpeg-dir=/usr
--with-png-dir=/usr
--enable-gd-native-ttf
--enable-fastcgi
--enable-force-cgi-redirect

Den Fehler msgs von Tomcat wie folgt:

HTTP Status 500 -

type Exception report

Nachricht

Beschreibung Der server hat einen internen Fehler () verhindert, dass die
es erfüllt diese Anforderung.

Ausnahme

javax.- servlet.ServletException:
php.java.Brücke.http.FCGIConnectException: es Konnte keine Verbindung zum server
php.java.- servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
org.apache.catalina.Ventile.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.- Anschluss.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11AprProcessor.Prozess(Http11AprProcessor.java:861)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
java.lang.Thread.run(Thread.java:662) Ursache

php.java.Brücke.http.FCGIConnectException: es Konnte keine Verbindung zum server
php.java.Brücke.http.SocketChannelFactory.test(SocketChannelFactory.java:58)
php.java.- servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.Ventile.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.- Anschluss.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11AprProcessor.Prozess(Http11AprProcessor.java:861)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
java.lang.Thread.run(Thread.java:662) Ursache

java.io.IOException: java.net.ConnectException: Connection refused
php.java.Brücke.http.FCGIConnectException.(FCGIConnectException.java:37)
php.java.Brücke.http.SocketChannelFactory.test(SocketChannelFactory.java:58)
php.java.- servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
org.apache.catalina.Ventile.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.- Anschluss.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11AprProcessor.Prozess(Http11AprProcessor.java:861)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
java.lang.Thread.run(Thread.java:662) Ursache

java.io.IOException: PHP wurde nicht gefunden. Bitte installieren Sie php-cgi. PHP test
Befehl war: [php-cgi-v]
php.java.Brücke.Util$Prozess.start(Util.java:1145)
php.java.- servlet.fastcgi.FCGIProcess.start(FCGIProcess.java:68)
php.java.Brücke.http.SocketChannelFactory.doBind(SocketChannelFactory.java:125)
php.java.Brücke.http.FCGIConnectionFactory.runFcgi(FCGIConnectionFactory.java:88)
php.java.Brücke.http.FCGIConnectionFactory$1.run(FCGIConnectionFactory.java:109)
Hinweis: Der volle stack-trace, der die Ursache ist in den Apache
Tomcat/6.0.29 Protokolle.

Apache Tomcat/6.0.29

  • PHP wurde nicht gefunden. Bitte installieren Sie php-cgi.
  • Hallo, mein configure-Zeile hast, die --enable-fastcgi. Brauche ich, um etwas extra zu aktivieren cgi-Unterstützung? Ich bin ziemlich verwirrt. Bitte unterstützen Sie. TIA.
  • Dies tut es lösen ? stackoverflow.com/questions/2728632/php-java-bridge-problem - (-DEHP.java.Brücke.php_exec=/usr/bin/php)
InformationsquelleAutor Segaraga | 2011-08-19
Schreibe einen Kommentar