Tomcat's--tomcat simple way to run PHP (episode)

Source: Internet
Author: User
Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/46010479

Quercus is a PHP5 engine developed by Caucho company with Pure java. Published under the GPL based on the Open source license agreement.

Quercus comes with a lot of 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 in PHP scripts to invoke some of the services such as JMS. Quercus will pre-compile the PHP file into a. java file before executing.

Here are the steps:

1 We put the PHP project as a Web project under WebApps, and built the Web-inf\lib directory inside. Example: webapps\phpdemo\web-inf\lib

2 from http://quercus.caucho.com/. Download Quercus-4.0.37.zip, extract the inside of the Web. Xml into the web-inf below, extract the jar inside and put it under Web-inf\lib.

3 Start Tomcat,

Tomcat's--tomcat simple way to run PHP (episode)

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.