There are four different integration options in order of complexity and your requirements. Existem quatro opções diferentes integração, a fim de complexidade e de suas exigências. They are as follows: Eles são os seguintes:

Multi-port Integration Multi-Port Integração
Run Apache (with PHP) on default port 80 and Tomcat on default port (8080). Execute o Apache (com PHP) a porta padrão 80 e Tomcat a porta padrão (8080). They can run on the same machine with different ports without any problems whatsoever. Eles podem rodar na mesma máquina com diferentes portos sem qualquer problema. This is the simplest procedure. Este é o procedimento mais simples.

Single Port Integration (Apache Mapping) Único porto integração (Apache mapeamento)
In this scenario Apache and Tomcat runs on different ports as above. Neste cenário e Apache Tomcat roda em diversos portos como anteriormente. However Tomcat any application can be mapped to a path on Apache server. No entanto Tomcat qualquer aplicativo pode ser mapeada para um caminho no servidor Apache. So it doesn’t appear to the end user that two servers are running. Então, ela não aparece para o usuário final que dois servidores estão rodando. This is almost as simple as sbove. Isto é quase tão simples como sbove.

Running PHP 5.x in Tomcat Executando PHP 5.x em Tomcat
The link above provides a detailed tutorial along with helpful comments from users. O link acima fornece um tutorial detalhado útil, juntamente com comentários de usuários. This isn’t very complex to setup (more complex than above) but you have to carefully follow the steps. Isso não é muito complexo para configuração (mais complexa do que acima), mas você tem de seguir cuidadosamente os passos. This also allows invoking php code from within jsp and with some minor changes in reverse direction too. Isso também permite invocar php código de dentro da jsp e com algumas pequenas alterações na direcção inversa também.

Single Port Integration (Apache Tomcat Connector) Único porto integração (Apache Tomcat Connector)
This is slightly better than the Apache mapping solution above. Isso é ligeiramente melhor do que o Apache mapeamento solução acima. You can configure it to run static html pages in Apache and dynamic JSP pages using Tomcat. Você pode configurá-lo para ser executado em páginas HTML estáticas e dinâmicas Apache Tomcat usando páginas JSP. However it is a installation / configuration hell (almost). No entanto, é uma instalação / configuração inferno (quase).

For all of the above you can exchange data between the PHP and Tomcat by using the database, files, invoking appropriate URL with GET/POST data etc. Additionally you can directly communicate in the Por tudo o atrás referido, pode trocar dados entre o PHP e Tomcat, usando a base de dados, arquivos, invocando a URL apropriado GET / POST dados etc Além disso, você pode comunicar diretamente no
running PHP 5.x in Tomcat executando o PHP 5.x em Tomcat solution. solução.