1
我一直在使用(安裝PCRE)的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
當我嘗試啓動
在RHEL5構建Apache httpd的-2.4.10./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 – user3670332
寫下你自己的答案並接受它。這樣它就不會被標記爲未答覆的問題,再加上遇到相同問題的其他人可能會從中受益。 – RealSkeptic