Tomcat-a simple way for Tomcat to run php (episode), tomcatphp

Source: Internet
Author: User

Tomcat-a simple way for Tomcat to run php (episode), tomcatphp

Reprinted please indicate the source: http://blog.csdn.net/l1028386804/article/details/46010479

Quercus is a PHP5 engine developed by Caucho using pure Java. Released based on the Open Source authorization protocol GPL.

Quercus comes with many PHP modules and extensions such as PDF, PDO, MySQL, and JSON. You can use this engine to run PHP programs in some Java EE application containers (Resin, GlassFish, etc.), or call some Java services such as JMS in the PHP script. Quercus will compile the PHP file into a. java file in advance and then execute it.

The steps are as follows:

1 we put the php project as a web project under webapps, and build the WEB-INF \ lib directory in it. For example:Web apps \ phpDemo \ WEB-INF \ lib

2 from http://quercus.caucho.com /. Download quercus-4.0.37.zip, extract the web. xml into the WEB-INF, extract the jar into the WEB-INF \ lib.

3. Start tomcat,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.