There are four different integration options in order of complexity and your requirements. Ci sono quattro diverse opzioni di integrazione in ordine di complessità e alle tue esigenze. They are as follows: Sono come segue:

Multi-port Integration Multi-porta l'integrazione
Run Apache (with PHP) on default port 80 and Tomcat on default port (8080). Eseguire Apache (con PHP) su impostazione predefinita la porta 80 e Tomcat sulla porta di default (8080). They can run on the same machine with different ports without any problems whatsoever. Di poter essere pubblicati sulla stessa macchina con diversi porti senza problemi di sorta. This is the simplest procedure. Questa è la procedura più semplice.

Single Port Integration (Apache Mapping) Solo porto di integrazione (Apache mappatura)
In this scenario Apache and Tomcat runs on different ports as above. In questo scenario di Apache Tomcat e funziona su diversi porti come sopra. However Tomcat any application can be mapped to a path on Apache server. Tuttavia Tomcat qualsiasi applicazione può essere associata a un percorso sul server Apache. So it doesn’t appear to the end user that two servers are running. In modo che non sembra l'utente finale che due server sono in esecuzione. This is almost as simple as sbove. Questo è semplice come sbove.

Running PHP 5.x in Tomcat Php in Tomcat 5.x
The link above provides a detailed tutorial along with helpful comments from users. Il link sopra riportato fornisce una guida dettagliata con utili commenti da parte degli utenti. This isn’t very complex to setup (more complex than above) but you have to carefully follow the steps. Questo non è molto complesso da configurare (più complessa di quanto sopra), ma dovete seguire attentamente i passi. This also allows invoking php code from within jsp and with some minor changes in reverse direction too. Ciò consente, altresì, invocando il codice php jsp dal di dentro e con alcune lievi modifiche in direzione inversa.

Single Port Integration (Apache Tomcat Connector) Solo porto di integrazione (Apache Tomcat connettore)
This is slightly better than the Apache mapping solution above. Questo è leggermente migliore rispetto alla soluzione di Apache mappatura di cui sopra. You can configure it to run static html pages in Apache and dynamic JSP pages using Tomcat. È possibile configurarlo per eseguire pagine HTML statiche in Apache e dinamica pagine JSP con Tomcat. However it is a installation / configuration hell (almost). Tuttavia si tratta di una installazione / configurazione inferno (quasi).

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 Per tutto quanto sopra è possibile lo scambio di dati tra il PHP e Tomcat utilizzando la banca dati, file, invocando l'URL appropriato con GET / POST dati ecc Inoltre, l'utente può comunicare direttamente nel
running PHP 5.x in Tomcat Php in Tomcat 5.x solution. soluzione.