Java website on Tomcat PHP website on Apache - how to get PHP web pages into Java web pages?

Posted by Venkat on Server Fault See other posts from Server Fault or by Venkat
Published on 2012-10-01T19:29:38Z Indexed on 2012/10/01 21:40 UTC
Read the original article Hit count: 237

Filed under:
|
|
|
|

We have a Java web application deployed on Tomcat. We also setup Apache and mod_proxy_ajp to route web requests (port 80/443) to Tomcat.

We would like to deploy a PHP application on the same Apache server - probably under a subdirectory (/var/www/ourapp).

Now we would like to access & display web pages from PHP application within web pages generated by Java application. Planning to implement Single Sign-on as well. Example: Web page from java has (JQuery Tabs) and we like to display the PHP web page within a tab while all other HTML comes from java application.

Can you please give a overall picture of how to proceed about this? Mainly 1. how we should install/setup our PHP application on same Apache server which is used to route web requests to Tomcat? i.e. either setup sub domain or install in sub directory 2. How to bring PHP pages into present web pages (generated by java). Can we use AJAX requests or should go for Java PHP Bridge/ Querces such applications?

Thank you for your time in advance. Regards.

© Server Fault or respective owner

Related posts about apache2

Related posts about php