我如何知道我在服务器上拥有哪个版本的 mod 安全性?以及如何更新它?

Lib*_*ano 1 mod-security

我正在使用安装了 mod security 的 cpanel (11.25 Stable 46156)。我如何知道服务器中安装的 mod security 的版本?

如何手动更新 mod 安全性或使其自动更新?

小智 5

找到它的另一种方法是简单地重新启动 Apache 服务器并查看日志以获取信息:

$ sudo service apache2 restart

$ grep -i modsecurity /var/log/apache2/error.log

[Sun Mar 08 19:14:02.000210 2015] [:notice] [pid 1912] ModSecurity for Apache/2.7.7 (http://www.modsecurity.org/) configured.
[Sun Mar 08 19:14:02.000278 2015] [:notice] [pid 1912] ModSecurity: APR compiled version="1.5.1-dev"; loaded version="1.5.1-dev"
[Sun Mar 08 19:14:02.000290 2015] [:notice] [pid 1912] ModSecurity: PCRE compiled version="8.31 "; loaded version="8.31 2012-07-06"
[Sun Mar 08 19:14:02.000300 2015] [:notice] [pid 1912] ModSecurity: LUA compiled version="Lua 5.1"
[Sun Mar 08 19:14:02.000308 2015] [:notice] [pid 1912] ModSecurity: LIBXML compiled version="2.9.1"
Run Code Online (Sandbox Code Playgroud)