Mediawiki 引擎仅在 LAN 上工作,在外部间歇性工作
我最近安装了一个运行 ubuntu 服务器 11.04 的 LAMP 服务器。我正在尝试在线运行私人 mediawiki 引擎,版本 1.17.0。由于某些奇怪的原因,它仅在 LAN 上完美工作,当我使用外部网络时,它会永远继续加载并继续超时。我的其他文件夹似乎在外部运行良好,所以我相信我的网络配置应该没问题。有时,当我很幸运时(比如 10% 的时间),它会正常加载几页,然后再次恢复挂起。如果我停止页面加载,它会出现,但皮肤会丢失。
我使用 firebug 并发现有 2 个进程,其中包含类似 load.php/debug=false...style:skin=vector 的内容,而所有其他文件加载正常。如果我停止所有扩展,杀死 common.js 和 common.css,并阻止在网站上使用 javascript,它会正常工作(相对而言,它会快速加载所有内容)。我认为这是一个 javascript 问题,但我不知道在哪里查找 java 的错误日志。
在检查 Firefox 错误控制台时,我还注意到相同的错误位置有一条“消息:预期'}'”。然而,当在局域网中运行时,它有相同的消息,但仍然工作正常。我尝试查看所有可能的资源,但无济于事。
I have recently installed a LAMP server running ubuntu server 11.04. I am trying to run a private mediawiki engine online, version 1.17.0. For some odd reason it works perfectly on the LAN only, when I use an external network, it would continue load forever and proceed to being timed out. Other folders I have seemed to be doing fine externally so I believe my network configuration should be ok. Sometimes when I do get lucky (like 10% of the time), it will load normally for a few pages and resume once again to hanging. If I stop the page load it would appear but the skin would be missing.
I used firebug and found that 2 processes with something like load.php/debug=false....style:skin=vector that is hanging while all the other files load fine. If I stopped all the extensions, killed both common.js and common.css, and prevent the use of javascript on the site, it would work fine (relatively speaking, it would load everything quickly). I think it is a javascript problem but I am not sure where to look for an error log for java.
When checking the firefox error console I also noted the same error location had a "message: expected '}'". However, when running in the LAN it has the same message but it still works fine. I tried looking through all possible resources but to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
终于找到了解决这个问题的办法:这毕竟是一个网络问题。我检查了所有日志,但找不到任何内容。但发现问题是ubuntu运行在dchp设置下,所以我将其更改为静态ip模式,现在它可以正常工作了。虽然我不明白为什么它会在仅通过 LAN 广播与外部广播之间产生差异,但它现在工作得很好。感谢任何尝试过的人
Finally found the solution to this problem: it was a networking issue afterall. I checked all the logs and could not find anything. But found that the problem was that the ubuntu was running under a dchp setting so I changed it into a static ip mode and now it works perfectly. Althought I don't understand why it would make a difference between broadcasting via LAN only vs. external, it works perfectly now. Thanks to anyone who tried