简体   繁体   English

32位版本的Apache可以加载64位模块吗?

[英]Can 32 bit version of Apache load a 64 bit module?

I have a 64 bit version of Solaris with a 32 bit bundled version of Apache. 我有一个64位版本的Solaris和一个32位捆绑版本的Apache。 I am trying to load mod_wl.so which is a 64 bit module for the apache-weblogic proxy but I get this error: 我正在尝试加载mod_wl.so,这是apache-weblogic代理的64位模块,但出现此错误:

mod_wl.so: wrong ELF class: ELFCLASS64

to me this suggests that the 32 bit Apache is not compatable with 64 bit modules. 对我来说,这表明32位Apache与64位模块不兼容。 My UNIX admin suggests otherwise, citing the modules-64.load file as enabling the 64 bit modules to work with 32 bit Apache. 我的UNIX管理员提出其他建议,将modules-64.load文件引用为使64位模块能够与32位Apache一起使用。

I'm not convinced, I think he needs to rebuild Apache to 64 bit. 我不确定,我认为他需要将Apache重建为64位。

Am I right? 我对吗?

是的,那是行不通的。

As succinctly answered by @Leeft, this doesn't work. 正如@Leeft简要回答的那样,这不起作用。

The modules-64.load file sits alongside modules-32.load. modules-64.load文件与modules-32.load并排放置。 In httpd.conf a check is done on the bit size to determine which of these files to use, so a 64 bit build reads from modules-64.load so that 'directives contained in it are actually available before they are used'. 在httpd.conf中,将对位大小进行检查,以确定要使用这些文件中的哪个,因此64位版本会从modules-64.load中读取数据,以便“包含在其中的指令在使用前实际上可用”。 In other words, this has nothing to do with enabling 64 bit modules to work with a 32 bit build - my UNIX admin appears to not know what he is talking about. 换句话说,这与使64位模块与32位版本一起工作无关-我的UNIX管理员似乎不知道他在说什么。

So the answer is 'yes I am right' - we need a 64 bit build of Apache or a 32 bit build of the weblogic module. 因此答案是“是的,我是对的”-我们需要64位版本的Apache或32位版本的weblogic模块。 Being that Oracle owns both Sun (Solaris) and Weblogic you'd think that they'd have figured that a the 32 bit default install of Apache on a 64 bit machine would need a 32 bit module, but apparently not. 由于甲骨文同时拥有Sun(Solaris)和Weblogic,因此您会认为他们认为在64位计算机上默认安装32位Apache,将需要32位模块,但显然不需要。

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

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