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:
LoadModule proxy_module modules/mod_proxy_balancer.so
[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?