There are four different integration options in order of complexity and your requirements. وهناك اربعة خيارات مختلفة من اجل التكامل من التعقيد والاحتياجات الخاصة بك. They are as follows: وهي كما يلي :

Multi-port Integration ميناء متعددة التكامل
Run Apache (with PHP) on default port 80 and Tomcat on default port (8080). تشغيل اباتشي (مع بي. اتش. بى) على التقصير 80 ميناء ومرفأ قط على التقصير (8080). They can run on the same machine with different ports without any problems whatsoever. ويمكن تشغيل على نفس الجهاز مع مختلف الموانئ من دون اي مشاكل على الاطلاق. This is the simplest procedure. وهذه هي أبسط الاجراءات.

Single Port Integration (Apache Mapping) ميناء التكامل واحدة (اباتشي رسم الخرائط)
In this scenario Apache and Tomcat runs on different ports as above. وفي هذا السيناريو اباتشي ويتعارض مع قط على مختلف الموانئ كما هو وارد اعلاه. However Tomcat any application can be mapped to a path on Apache server. ومع ذلك قط في أي طلب يمكن رسمها على الطريق الى الخادم اباتشي. So it doesn’t appear to the end user that two servers are running. حتى انه لا يبدو ان المستخدم النهائي ان اثنين من الخدمة قيد التشغيل. This is almost as simple as sbove. وهذا هو تقريبا بهذه البساطه sbove.

Running PHP 5.x in Tomcat بي. اتش. بى في ادارة 5.x قط
The link above provides a detailed tutorial along with helpful comments from users. الوصله اعلاه ويقدم امثلة توضيحيه مفصلة مع تعليقات مفيدة من المستخدمين. This isn’t very complex to setup (more complex than above) but you have to carefully follow the steps. وهذه ليست معقدة جدا لاعداد (وأكثر تعقيدا مما هو اعلاه) ولكن عليك أن تتبع الخطوات بدقة. This also allows invoking php code from within jsp and with some minor changes in reverse direction too. كما يسمح هذا القانون التي تحتكم بي. اتش. بي من داخل والتخطيط الاستراتيجى المشترك مع بعض التغييرات الطفيفه في اتجاه عكسي ايضا.

Single Port Integration (Apache Tomcat Connector) ميناء التكامل واحدة (اباتشي قط موصل)
This is slightly better than the Apache mapping solution above. وهذا هو افضل منه بقليل من حل اباتشي رسم الخرائط اعلاه. You can configure it to run static html pages in Apache and dynamic JSP pages using Tomcat. يمكنك ان تشغله ساكنة لغة تأشير النص الفائق صفحات اباتشي في التخطيط الاستراتيجي المشترك وديناميه صفحات باستخدام قط. However it is a installation / configuration hell (almost). ومع ذلك فهو تركيب / تشكيل الجحيم (تقريبا).

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 لجميع ما ذكر اعلاه يمكنك تبادل البيانات بين قط وبي. اتش. بى عن طريق استخدام قاعدة البيانات والملفات ، التي تحتكم الى الملاءمه مع الحصول على موقع / ما بعد بيانات الخ وبالاضافة الى ذلك يمكنك الاتصال مباشرة في
running PHP 5.x in Tomcat بي. اتش. بى في ادارة 5.x قط solution. الحل.