Tomcat - a simple way to run php on Tomcat (interlude)

WBOY
Release: 2016-08-08 09:23:46
Original
1164 people have browsed it

<span>转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46010479
</span>
Copy after login

Quercus is a PHP5 engine developed by Caucho using pure Java. Released under the open source licensing agreement 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 JavaEE application containers (Resin, GlassFish, etc.), and you can also call some Java services such as JMS in PHP scripts. Quercus will pre-compile the PHP file into a .java file before executing it.

The following are the steps:

1 We treat the php project as a web project and place it under webapps, and create the WEB-INFlib directory inside. For example: webappsphpDemoWEB-INFlib

2 from http://quercus.caucho.com/. Download quercus-4.0.37.zip, extract the web.xml and put it under WEB-INF, extract the jar and put it under WEB-INFlib.

3 Start tomcat,

The above introduces Tomcat - a simple method (interlude) of running PHP on Tomcat, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!