Questions tagged [pcre]

46 questions
14
votes
2 answers

What are PCRE limits?

In ModSecurity there are PCRE limits exceeded errors. I know I can fix this by setting rules such as: SecPcreMatchLimit 150000 SecPcreMatchLimitRecursion 150000 But, what are these rules actually doing? What does the PCRE limit recursion set to…
user101130
14
votes
4 answers

mod_security - PCRE limits exceeded

Just about on every request I am getting the following error: Rule execution error - PCRE limits exceeded (-8): (null). After a bunch of googling the only solutions seem to be a) Add the following in your httpd.conf SecPcreMatchLimit…
ParoX
  • 312
  • 1
  • 7
  • 22
13
votes
1 answer

Why is it unnecessary to escape "/" in Nginx regular expressions?

So I've made it a thing to finally learn about regular expressions. Normally when working with regular expressions it is necessary to escape delimiters (like "/") with a "\". But when I'm using regular expressions in Nginx it would seem that "/" is…
6
votes
1 answer

Apache HTTPd 2.2 is ignoring LocationMatch regex

I am trying to create a Reverse Proxy that match every URL except one in Apache 2.2. It works on Apache 2.4 (Centos 7), but not in Apache 2.2 (Centos 6.6) ... # Do not modify this ProxyPass…
6
votes
3 answers

Fixing Shared PCRE Library on CentOS

This is less a question about PCRE, and more a question about updating shared libraries. The distribution of CentOS I'm running only allows for yum upgrades to version 6.6, or somewhere similar. I'm installing an issue tracker that requires PCRE…
6
votes
2 answers
5
votes
2 answers

PECL install/phpize error

This is my PHP setup ################################################################## # setup PHP ################################################################## # we use this to make inline CSS in newsletter yum install php php-tidy php-xml…
Gajus
  • 871
4
votes
1 answer

grant PHP permission to allocate executable memory

I received this message during an iTop installation. If you google this, it appears on commercial websites above their content. Warning: filter_var(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely because of security…
4
votes
1 answer

pcregrep is not matching regex (multiline?)

I don't understand why is first two is a match/hit, yet third is a miss? -bash-3.2# cat 1361492805.M171838P41834.mx1.alexus.biz\,S\=12921\:2\,Sijm | pcregrep -q '.*languager.*' ; echo $? 0 -bash-3.2# cat…
alexus
  • 13,667
4
votes
1 answer

How to get pcre 8.x on Ubuntu 10.04 (Linode)

I'm trying to set up Bug Genie 3.x on my Linode server, and it is complaining because I have pcre 7.8 instead of 8.x. Doing an apt-get update and upgrade doesn't help and says that I have the latest version of libpcre3. Am I supposed to install…
devrelm
  • 143
3
votes
0 answers

Postfix: Enforce sender address for some users only

I am looking for an option to enforce an envelope sender address in postfix for selected users, only. E.g., I want to permit user1@example.com to send mails as user1@example.com, only, while all other users shall be able to choose their from…
i3i5i7
  • 81
3
votes
3 answers

Why is postmap returning an error when executed on a PCRE lookup table?

I am using postfix-pcre on Debian Linux. When I run: postmap /etc/postfix/smtp_header_checks.pcre or postmap pcre:/etc/postfix/smtp_header_checks.pcre I get the following error: postmap: warning: smtp_header_checks.pcre, line 1: record is in "key:…
3
votes
3 answers

PHP Kohana CentOS 5

Trying to deploy a Kohana based project in CentOS 5. Installed PHP 5.3.1 but still getting the following error. Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0…
Undefined
2
votes
1 answer

Multi-line PCRE w\ lookhead, count matches

I am trying to perform a regex that matches if both the word cat AND dog are in the regex with multi-line support matches cat asdjfaldsfj dog #### does NOT match cat adfasdf8989 #### matches dog adlsjf88989 cat #### matches cat asdf8a89sdf8 a…
2
votes
2 answers

Upgrade PCRE to 8.40 on CentOS 7

When I do yum installed | grep pcre I get: pcre.x86_64 8.32-15-el7_2.1 @updates pcre-devel.x86_64 8.32-15-el7_2.1 @updates How do I upgrade these to the most recent versions (currently 8.40)? Do I have to uninstall the…
1
2 3 4