Apache mod-security 给出“加载的 PCRE 与编译的不匹配!”

Apache mod-security 给出“加载的 PCRE 与编译的不匹配!”

我已经安装了一个带有 Apache 和 PHP 且具有 mod-security 的网络服务器。问题是 mod-security 似乎与 PHP 安装不兼容。

当我重新启动 apache 时,我在 apache 错误日志中得到以下结果:

[Mon May 07 09:28:45.000596 2018] [:notice] [pid 61272] ModSecurity for Apache/2.9.1 (http://www.modsecurity.org/) configured.
[Mon May 07 09:28:45.000691 2018] [:notice] [pid 61272] ModSecurity: APR compiled version="1.5.2"; loaded version="1.5.2"
[Mon May 07 09:28:45.000699 2018] [:notice] [pid 61272] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.41 2017-07-05"
[Mon May 07 09:28:45.000705 2018] [:warn] [pid 61272] ModSecurity: Loaded PCRE do not match with compiled!
[Mon May 07 09:28:45.000710 2018] [:notice] [pid 61272] ModSecurity: LUA compiled version="Lua 5.1"
[Mon May 07 09:28:45.000715 2018] [:notice] [pid 61272] ModSecurity: YAJL compiled version="2.1.0"
[Mon May 07 09:28:45.000720 2018] [:notice] [pid 61272] ModSecurity: LIBXML compiled version="2.9.4"
[Mon May 07 09:28:45.000725 2018] [:notice] [pid 61272] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon May 07 09:28:46.024997 2018] [mpm_prefork:notice] [pid 61273] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations

正如您所看到的,该错误表明 PCRE 版本与加载的版本不兼容。我找不到任何有关这意味着什么或如何修复它的信息。有人知道该怎么做吗?

一些服务器信息: 服务器版本:Debian 9.4

PHP 信息:

PHP 7.2.4-1+0~20180405085422.20+stretch~1.gbpbff9f0 (cli)

活跃的 PHP 模组:

bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

相关内容