I have practiced with my apache 2.4.6 on CentOS7 and I have tried to add shared module. I can list my compiled modules using this command httpd -l. All shared modules is located in /etc/httpd/modules. I have read a lot about modules, for example this proxy_module or this apache modules. My steps were:

vim /etc/httpd/conf/httpd.conf

LoadModule proxy_module modules/mod_proxy_balancer.so

Reasonable permissions: [root@localhost conf]# ls -la ../modules/mod_proxy_balancer.so -rwxr-xr-x. 1 root root 48160 Nov 19 16:44 ../modules/mod_proxy_balancer.so

After debugging my apache httpd -tI got this:

httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_proxy_balancer.so into server: /etc/httpd/modules/mod_proxy_balancer.so: undefined symbol: proxy_module

I know maybe it is a hackneyed question and I am slow in a fast lane but...What did I do wrong? How to add my shared module?


I figured out how to add shared module and here is explanation:

Go to /etc/httpd/conf.modules.d

Create file with .conf extension in which you'll put you settings for shared module: touch proxy_module.conf

Add this to proxy_module.conf : LoadModule proxy_module modules/mod_proxy_balancer.so

Restart apache: systemctl restart httpd

After all this steps you can use benefits of shared module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.