网站地图    收藏   

主页 > 系统 > nginx >

nginx错误处理:ModSecurity PCRE do not match with compiled 的解决

来源:未知    时间:2018-02-11 15:58 作者:小飞侠 阅读:

[导读] nginx错误处理:ModSecurity PCRE do not match with compiled 的解决 解决方法 wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz ./configure --prefix=/usr/local/pcre-8.36 --libdir=/usr/local/lib/pcre --include...

nginx错误处理:ModSecurity PCRE do not match with compiled 的解决 



解决方法


wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz


./configure --prefix=/usr/local/pcre-8.36 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre
     configure有许多参数可配,具体参见./configure --help及手册
4、编译:
     make
5、安装:
     make install
6、检查:
     ls /usr/local 检查是否有pcre目录
     ls /usr/local/lib   检查是否有pcre目录
     ls /usr/local/include   检查是否有pcre目录
7、将库文件导入cache:
     方法1:在/etc/ld.so.conf中加入: /usr/local/lib/pcre,然后运行ldconfig


参考


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.  


自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论