我已经在 RHEL5 上使用(安装了 pcre)构建了 apache httpd-2.4.10
"--with-included-apr" \ "--prefix=/opt/isv/apache/httpd-2.4.10" \ "--enable-authnz-ldap" \ "--enable-ldap" \ "--enable-ssl" \ "--with-ldap" \ "--with-pcre" \ "--enable-pcre" \ exit 0
当我尝试开始时
./apachectl -D LCP_QA -f /opt/isv/apache/httpd-2.4.10/conf/cg_test_httpd.conf
错误是
AH00526: Syntax error on line 227 of /opt/isv/apache/httpd-2.4.10/conf/cg_test_httpd.conf: Regex could not be compiled
抛出错误的行是
<Files ~ "^\.ht"> Order Allow,Deny Deny from all </Files>
这个相同的 conf 文件适用于 2.4.3 版本。
最佳答案
刚找到解决方案。我必须重新指定下载的 pcre 的路径 --with-pcre=/opt/isv/src/SOURCES/httpd-2.4.10/srclib/pcre/pcre-config
关于linux - httpd-2.4.10 从 "Regex could not be compiled"开始失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27828899/