The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PCRE Issues - preg_replace(): Compilation failed

Discussion in 'EasyApache' started by spmfox, Jul 21, 2014.

  1. spmfox

    spmfox Member

    Joined:
    Jul 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a similar issue to this thread:

    Error Messages:
    =============
    PHP Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset 0 in /home/xxxxx/xxxxx.php on line 473
    ...
    PHP Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /home/xxxxx/xxxxx.php on line 435
    =============

    cPanel:
    =============
    CENTOS 6.5 x86_64
    WHM 11.44.0 (build 27)
    =============

    I'm not sure what to do here, is it that PCRE needs to be updated, PHP issue, or cPanel issue?

    Thanks in advance for your help.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,807
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Is this happening for multiple websites, or is it isolated to a single script installation (e.g. WordPress)? Have you checked with the support for the script you are using to see if any solutions are available?

    Thank you.
     
  3. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    EasyApache uses the PCRE that's installed in /opt/pcre directory, and not the system version. Try re-running /opt/pcre/bin/pcretest -C for verification.

    You can also run the following commands to ensure that Apache looks at /opt/pcre/lib before any others:
    It should look something like the following:
     
Loading...

Share This Page