Let Tomcat parse php

Source: Internet
Author: User
Required Tools: (1) apachetomcat (2) put the jar package in web-inf/lib/of quercusquerus under $ atat_home/lib and modify $ TOMCAT_HOME/conf/web. add the following servlet ing to the xml file: Xml code & lt; servlet & gt; & lt; servlet-name & g

Required Tools:
(1) apache tomcat
(2) Quercus
 
Put the jar package in web-inf/lib/in the $ TOMCAT_HOME/lib Directory, modify the $ TOMCAT_HOME/conf/web. xml file, and add the following servlet ING:
Xml code

Quercus Servlet  
Com. caucho. quercus. servlet. QuercusServlet  
 
 
 
 
 

Quercus Servlet  
*. Php  
 
 
OK. restart tomcat.

Add a php page to the previously deployed jsp project.
Php page with the following content:
Php code
Echo "Hello World ";
Phpinfo ();
?>

Author "irfen"
 

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.