欢迎来到云服务器

Directadmin Linux面板

将自定义模块添加到apache for customapache

自定义Apache已弃用。 请参阅定制构建指南:
http://help.directadmin.com/item.php?id=191




If you want to add any extra modules to apache, they'll need to be compiled in. Any module that needs to be compiled in will have a --with-module type flag which will need to be used. To add this flag, run the following:

cd /usr/local/directadmin/customapache 
vi configure.apache_ssl

#将--with-module行添加到文件的末尾,其中--with-module将替换为要安装的模块的必需条目。 查看你的模块文档。
#并确保该字符存在于除最后一行之外的所有行的末尾。

./build clean 
./build apache_mod_ssl


然后重新启动apache:
FreeBSD:

/sbin/service httpd restart


FreeBSD:

/usr/local/etc/rc.d/httpd restart



如果遇到问题,您可能还需要重新编译php:

./build php

然后重新启动apache。
腾讯云代理

Copyright © 2003-2021 MFISP.COM. 国外vps服务器租用 梦飞云服务器租用 版权所有 粤ICP备11019662号