启用 APC 时 OpenX php 致命错误
我正在尝试将 openX 从 RHEL 服务器迁移到基于 Ubuntu 的服务器。
每当启用 APC 时,我都会遇到以下错误:
致命错误:在第 33 行 /var/www/openx/lib/OA/Central/M2MTicketProviderImpl.php 中找不到接口“OX_M2M_M2MTicketProvider”
一旦我关闭 apc,一切正常美好的。
有人遇到过这个吗?
提前致谢
更新:这实际上仅在 apc.stat=0 时发生。可能值得一提的是,配置文件符号链接到共享存储(glusterFS)
更新2: 在 M2MTicketProviderImpl.php 上,如果我更改
require_once (dirname ( FILE ) . "../../../OX/M2M/M2MTicketProvider.php");
require_once
(LIB_PATH . "/../OX/M2M/M2MTicketProvider.php");
有用。
但我想找到一个不需要破解 openX 代码的解决方案。
I am trying to migrate openX from a RHEL server to an Ubuntu based.
I am hitting the following error whenever APC is enabled:
Fatal error: Interface 'OX_M2M_M2MTicketProvider' not found in /var/www/openx/lib/OA/Central/M2MTicketProviderImpl.php on line 33
as soon as I switch apc off, everything works fine.
has anybody encountered this?
thanks in advance
UPDATE: This actually only happens when apc.stat=0. It is probably worth mentioning that the config file is symlinked to a shared storage (glusterFS)
UPDATE 2:
On M2MTicketProviderImpl.php if I change
require_once (dirname ( FILE ) . "../../../OX/M2M/M2MTicketProvider.php");
to
require_once (LIB_PATH . "/../OX/M2M/M2MTicketProvider.php");
it works.
But I would like to find a solution where I dont need to hack the openX code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的解决方案是设置:
simple solution for that is settings: