nginx错误处理:ModSecurity PCRE do not match with compiled 的解决
./configure --prefix=/usr/local/pcre-8.36 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre
ls /usr/local 检查是否有pcre目录
ls /usr/local/lib 检查是否有pcre目录
ls /usr/local/include 检查是否有pcre目录
I believe it's more a bug than a feature.
Cpanel or EasyApache installs PCRE version 8.21 2011-12-12 int /opt/pcre/lib
But it does also install PCRE from YUM repository, which for Centos has Version 7.8 2008-09-05, which is too old.
I am not sure why EasyApache makes Apache and PHP (DSO, mod_ruid2) to use the system ones, even when it's compiled with /opt/pcre parameter.
Requesting PCRE version from command lines reports new version, but using phpinfo() reported old versions. Meaning apache , and PHP running as module uses system ones.
As i have little time nowadays, let's se if another users will encouter same problem, maybe they could provide more information.