Linux编译apache的时候要开启哪些模块?

Linux编译apache的时候要开启哪些模块?,第1张

一般来说,开启一些核心的模块,然后外加php、压缩、过期模块即可。

如下是我的:

core_module (static)

authn_file_module (static)

authn_default_module (static)

authz_host_module (static)

authz_groupfile_module (static)

authz_user_module (static)

authz_default_module (static)

auth_basic_module (static)

include_module (static)

filter_module (static)

log_config_module (static)

env_module (static)

headers_module (static)

setenvif_module (static)

version_module (static)

mpm_worker_module (static)

http_module (static)

mime_module (static)

status_module (static)

autoindex_module (static)

asis_module (static)

cgid_module (static)

negotiation_module (static)

dir_module (static)

actions_module (static)

userdir_module (static)

alias_module (static)

rewrite_module (static)

so_module (static)

php5_module (shared)

deflate_module (shared)

expires_module (shared)

缺少pcre-8.41.tar.gz包,找一个pcre和你httpd对应得版本安装

./configure --prefix=/usr/local/pcre

make &&make install

安装好了之后,加上参数--with-pcre=/usr/local/pcre 如下所示

./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/6175183.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-17
下一篇 2023-03-17

发表评论

登录后才能评论

评论列表(0条)

保存