Answer the question
In order to leave comments, you need to log in
How to change compiled Apache module ID?
There is a compiled xxx.so module for apache 2.2.
The module has a module identifier _yyy_module, which is specified when connecting the module in the directive LoadModule _yyy_module "module path".
The module also provides a handler of the zzz-application type, which is used inside the construct in the following way:
SetHandler zzz-application.
Actually, further a crux of the problem. I have two different versions of this module. You need to make them work simultaneously within the same Apache instance. To do this, I changed their handler by simply editing the zzz-application line in the module file: zz1-application and zz2-application.
I checked that the edit did not destroy the functionality of the module.
Now we need to load both modules, however, the same module identifiers cannot be specified in the LoadModule construct. I look for the _yyy_module line in the xxx.so file, change it to _yy1_module and _yy2_module, try to load it into apache and get 2 errors at startup:
apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/httpd.conf: Cannot load /opt/xx1.so into server: /opt/xxx1.so: undefined symbol: _yy1_module
Action 'start' failed.
apache2: Syntax error on line 215 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/httpd.conf: Cannot load /opt/xx2.so into server: /opt/xx2.so: undefined symbol: _yy2_module
Action 'start' failed.
Is it possible to somehow fix this trouble with patching?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question