You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anura <ak...@gmail.com> on 2008/10/12 12:05:37 UTC
Re: Jakarta Tomcat + Windows + PHP
d~l wrote:
>
> On 11 May 2005 at 19:01, Janet Fraser jlfraser-at-infotech.monash. wrote:
>
>> Maybe my question should have been
>> simpler, ie How do I install PHP to Tomcat?
>
> Here is my installation of PHP on tomcat 5.0.28 (on WinXP) ..
>
> * install PHP (preferably PHP5) into c:\PHP\
>
> * place php.ini in c:\windows\php.ini
>
> * download phpservlet.war from here ..
>
> http://tools.herberlin.de/phpservlet/phpservlet.war
>
> * drop phpservlet.war into tomcat5\webapps\
>
> * in tomcat5\webapps\phpservlet\WEB-INF\web.xml
>
> set paths
>
> <param-name>php.executable</param-name>
> <param-value>c:/php/php-cgi.exe</param-value>
>
> and
>
> <param-name>SystemRoot</param-name>
> <param-value>c:/windows/</param-value>
>
> note: use php-cgi.exe and not php.exe.
>
> * Launch http://localhost:8080/phpservlet/phpinfo.php
>
> to check that PHP is working on tomcat.
>
>
I am Anura Pushpakumara from Srilanka. I successfully followed your
instruction. But error is coming indicating that not found php executable
file. I append the error report here.
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: PHP executable not found: true
de.herberlin.phpservlet.PhpServlet.init(PhpServlet.java:56)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:619)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.20 logs.
I will thank you lot if you will help me to correct this error.
Thankyou
Anura
email :- akasthurianura@gmail.com
--
View this message in context: http://www.nabble.com/Jakarta-Tomcat-%2B-Windows-%2B-PHP-tp25589p19940199.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org