Apache Tomcat 6 和 Cpanel 错误
使用 cPanel easyApache 我安装了 Apache Tomcat 5.5.x 并尝试将其升级到 Tomcat 6.xx
在 /usr/local/jakarta 下载并展开 Tomcat 6
使用 0755 将组所有者更改为Nobody/Tomcat
将 tomcat 符号链接更改为 /usr/local/jakarta/apache-tomcat-6.xx
提取并构建本机守护进程 jsvc
取消注释并更改 /usr/local/jakarta/tomcat/conf/tomcat-users.xml
<role rolename="manager-gui"/>
<user username="tomcat" password="secret" roles="manager-gui"/>
</tomcat-users>
从 5.5.x 复制到 6.xx
/usr/local/jakarta/apache-tomcat-6.0.33/conf/workers.properties
/usr/local/jakarta/apache-tomcat-6.0.33/conf/httpd-jk.conf
从 cPanel 安装 Servlet 到我的域:
Main -> Account Functions -> Install Servlets
使用重新启动 Tomcat
/scripts/restartsrv_tomcat
我可以浏览到 url,即 www.tomcat。 com:8080,我看到了正确的版本号。
因此,在我的 public_html 文件夹中,我创建了一个 test.jsp。当我访问它时,我收到错误:
500 内部服务器错误
服务器遇到内部错误或配置错误,无法完成您的请求。
请联系服务器管理员并告知他们错误发生的时间以及您可能执行的任何操作可能导致错误。
有关此错误的更多信息可以在服务器错误日志中找到。
此外,尝试使用 ErrorDocument 处理请求时遇到 404 Not Found 错误。
查看 apache 的日志,我发现没有错误,mod_jk 日志中有一个错误:
[Tue Jan 25 18:51:40 2012] [21925:47707893800752] [info] jk_handler::mod_jk.c (2686): Could not find a worker for worker name=ajp13
因此,检查workers.properties 我看到它包含:
worker.list=wlb,jkstatus
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
我很困惑还缺少什么导致我在浏览器中看到的错误,非常感谢任何和所有的提示和帮助。
Using cPanel easyApache I installed Apache Tomcat 5.5.x and attempted to upgrade it to Tomcat 6.x.x
Download and expand Tomcat 6 in /usr/local/jakarta
Changed group owner to Nobody/Tomcat with 0755
Changed tomcat symlink to /usr/local/jakarta/apache-tomcat-6.x.x
Extracted and built the native daemon jsvc
Uncommented and changed /usr/local/jakarta/tomcat/conf/tomcat-users.xml
<role rolename="manager-gui"/>
<user username="tomcat" password="secret" roles="manager-gui"/>
</tomcat-users>
Copied from 5.5.x to 6.x.x
/usr/local/jakarta/apache-tomcat-6.0.33/conf/workers.properties
/usr/local/jakarta/apache-tomcat-6.0.33/conf/httpd-jk.conf
Installed Servlet from cPanel to my domain:
Main -> Account Functions -> Install Servlets
Restarted Tomcat using
/scripts/restartsrv_tomcat
I can browse to the url ie www.tomcat.com:8080 and I see the correct version number.
So in my public_html folder I created a test.jsp. When I visit it I get error:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Looking in the logs for apache, I find no errors, there is an error in the mod_jk log:
[Tue Jan 25 18:51:40 2012] [21925:47707893800752] [info] jk_handler::mod_jk.c (2686): Could not find a worker for worker name=ajp13
So checking workers.properties I see it contains:
worker.list=wlb,jkstatus
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
Im stumped as to what else is missing that is causing the error I am seeing in the browser, any and all hints and help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试删除重复的 worker.list 行,并且您没有名为 ajp13w 的工作人员(您将其称为balance_worker)。
Try getting rid of your duplicate worker.list lines, and also you don't have a worker called ajp13w which you're calling as a balance_worker.