How to add modules into Apache (mod_dbd and mod_auth_dbd)

853 Views Asked by At

I have tried my best to see if I can add the modules mod_dbd and mod_auth_dbd into Apache but I can't seem to get them to work. I am not sure if I am doing this correct, inside the httpd.conf file I have this line:

LoadModule dbd_module modules/mod_dbd.so 

Is this how you meant to add the module for mod_dbd ?

After putting this line of code inside myhttpd.conf file, when I try to restart my sever I am getting an error:

Cannot open shared object file : No such file or directory

Thanks

1

There are 1 best solutions below

0
Evan Genest On

You can do this manually and get more granular feedback on what is failing. Inspect the paths. On my Ubuntu 20 I see there are 33 enabled modules:

$ ls /etc/apache2/mods-available/ | wc
    143     143    2096
$ ls /etc/apache2/mods-enabled | wc
     33      33     450

To enable a module, check if it is already enabled: $ ls /etc/apache2/mods-enabled | grep dbd

If it is not enabled, Apache2 lets you do this at the command line: sudo a2enmod dbd