Running PHP on Tomcat

Hi,

I am trying to install JavaScriptSpellcheck for our intranet web app that run by Apache tomcat and out development environment is Eclipse IDE, so I am trying to make things to work in Eclipse.

Basically, I followed this link:

https://groups.google.com/forum/embed/?place=forum/javascriptspellcheck&showsearch=true&showpopout=true&parenturl=http%3A%2F%2Fwww.javascriptspellcheck.com%2FSupport#!searchin/javascriptspellcheck/apache$20tomcat/javascriptspellcheck/A4K3WXjGwik/OdTTtvQnjgQJ

And I was able to run the JavaBridge in my eclipse successfully.

Now, I am stuck when I apply this in our intranet web app,(let say IntranetABC.) so let me know if I miss anything.

I created folder, lib and cgi in root folder(apache-tomcat-7.0.39/wtpwebapps/IntranetABC/), copied the contents of lib and cgi from the JavaBridge/WebContent/WEB-INF/ and copied the web.xml part (#3 in the above link) in the IntranetWebApp/WEB-INF/web.xml.

When I start tomcat, it complaints about

org.springframework.web.context.ContextLoaderListener....
(IntranetABC is Struts framework, so I commented out that part.)
And then I get this error:
SEVERE: Error configuring application listener of class php.java.servlet.ContextLoaderListener...

What am I missing here?

thanks in advance...
dkim18Asked:
Who is Participating?
 
gheistCommented:
You need to compile PHP yourself
XOR
take approach with apache serving static parts, and redirectmatch to dynamic parts - JSP-s and PHPs (in case of php - php-fcgi.exe)

btw tomcat is at 7.0.61 now, and fixes exactly http protocol parser in the meantime.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.