我使用了命令apachectl -M,我禁用了所有不必要的mods,现在我正在尝试禁用apache的日志:
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_host_module (shared)
authz_user_module (shared)
deflate_module (shared)
dir_module (shared)
headers_module (shared)
mime_module (shared)
php5_module (shared)
proxy_module (shared)
proxy_http_module (shared)
rewrite_module (shared)
setenvif_module (shared)
ssl_module (shared)
wsgi_module (shared)
Syntax OK
我用过
a2dismod log_config, a2dismod log, a2dismod log_config_module, a2dismod mod_log_config , a2dismod mod_log
我总是得到
ERROR: Module log_config does not exist!
我无法更新Apache,也是一个sudoer。
答案 0 :(得分:2)
log_config_module是静态模块。如果模块是静态的,那意味着它被编译进去。没有重新编译就没有简单的方法来添加/删除它们。