[英]How to add modules into Apache (mod_dbd and mod_auth_dbd)
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.我已尽力查看是否可以将模块
mod_dbd
和mod_auth_dbd
添加到 Apache 中,但我似乎无法让它们工作。 I am not sure if I am doing this correct, inside the httpd.conf
file I have this line:我不确定我这样做是否正确,在
httpd.conf
文件中我有这一行:
LoadModule dbd_module modules/mod_dbd.so
Is this how you meant to add the module for mod_dbd
?这是您打算为
mod_dbd
添加模块的mod_dbd
吗?
After putting this line of code inside myhttpd.conf
file, when I try to restart my sever I am getting an error:将这行代码放入
myhttpd.conf
文件后,当我尝试重新启动服务器时出现错误:
Cannot open shared object file : No such file or directory
无法打开共享对象文件:没有这样的文件或目录
Thanks谢谢
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:
在我的 Ubuntu 20 上,我看到有 33 个启用的模块:
$ 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
要启用一个模块,请检查它是否已经启用:
$ ls /etc/apache2/mods-enabled | grep dbd
$ ls /etc/apache2/mods-enabled | grep dbd
If it is not enabled, Apache2 lets you do this at the command line: sudo a2enmod dbd
如果未启用,Apache2 允许您在命令行执行此操作:
sudo a2enmod dbd
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.