简体   繁体   English

如何在具有Tomcat 8的Linux上安装Quercus

[英]How to install Quercus on Linux with Tomcat 8

I have a running Tomcat server and recently wanted to get phpmyadmin used with MySQL on Linux. 我有一台正在运行的Tomcat服务器,最近想在Linux上将phpmyadmin与MySQL一起使用。 I have researched a bit and found that Quercus can be used for PHP on Tomcat. 我研究了一下,发现Quercus可用于Tomcat上的PHP。 I then started my installation. 然后,我开始安装。

I have downloaded the quercus.war, put it under /tomcat/webapps/ROOT , restarted tomcat, and tested on browser. 我已经下载了quercus.war,将其放在/ tomcat / webapps / ROOT下 ,重新启动了tomcat,并在浏览器上进行了测试。 However it's not working, index.php gives "PHP files are not being interpreted by Quercus" which I think it means failure. 但是它不起作用,index.php给出“ Quercus无法解释PHP文件”的信息,我认为这意味着失败。

I then searched and tried to put the quercus.jar (from quercus.war) under /tomcat/lib/ then restarted Tomcat. 然后,我搜索并尝试将quercus.jar(来自quercus.war)放在/ tomcat / lib /下,然后重新启动Tomcat。 It gives the same page and same message with index.php. 它与index.php提供相同的页面和相同的消息。

EDIT: I have tried to modify /tomcat/web.xml , at the same time removed quercus.jar from /tomcat/lib and restarted tomcat. 编辑:我试图修改/tomcat/web.xml ,同时从/ tomcat / lib中删除quercus.jar并重新启动tomcat。 This time it gives HTTP 404,requested resource is not avaliable 这次它给出HTTP 404,请求的资源不可用

My questions are: 我的问题是:

  1. Is there anything I missed or is there anything wrong? 我有什么想念的吗?
  2. Further, how do I install phpmyadmin after my installation of Quercus? 此外,在安装Quercus之后如何安装phpmyadmin?

I decided not to use phpmyadmin and switch to VDBC. 我决定不使用phpmyadmin并切换到VDBC。 I put vdbc.war under /tomcat/webapps/ and restarted tomcat, everything goes fine now. 我将vdbc.war放在/ tomcat / webapps /下,并重新启动了tomcat,现在一切正常。

EDIT: I tried to put quercus directory under /tomcat/webapps/ and it works! 编辑:我试图将quercus目录放在/ tomcat / webapps /下 ,并且可以使用! However, I still cannot figure out how to make phpmyadmin run, is there any advice? 但是,我仍然不知道如何使phpmyadmin运行,有什么建议吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM