如果你想在custombuild中为apache添加额外的模块,他们需要被编译进去。任何需要编译的模块都会有一个模类型标志将需要使用。 要添加此标志,请运行以下命令:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp configure/ap2/configure.apache custom/ap2/configure.apache
vi custom/ap2/configure.apache
#将你的--with-module行添加到文件末尾,
#并确保该字符存在于除最后一行之外的所有行的末尾。
./build clean
./build apache
然后重新启动apache:
RedHat:
/sbin/service httpd restart
FreeBSD:
/usr/local/etc/rc.d/httpd restart
Debian:
/etc/init.d/httpd restart
如果遇到问题,您可能还需要重新编译php:
./build php
然后重新启动apache。










