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.

Need to downgrade pcre from 8.21 to 8.20

Discussion in 'General Discussion' started by Avensen, Feb 11, 2012.

  1. Avensen

    Avensen Member

    Joined:
    Feb 27, 2007
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    1
    After upgrading php to 5.3.10 via EasyApache there is a problem with a vBulletin 3.8.7 site on server.

    Looks like a bug in pcre 8.21: Bug 1187 – Pcre 8.21 issue with Vbulletin

    Please help to downgrade pcre from 8.21 to 8.20 on the server. CENTOS 5.7 i686, WHM 11.30.6 (build 3).
     
  2. blowie

    blowie Member

    Joined:
    Aug 2, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I got same Problem Please Help
     
  3. squadx

    squadx Active Member

    Joined:
    Jan 26, 2012
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Me as well, vbulletin does not support anything higher than 8.2.0.
     
  4. squadx

    squadx Active Member

    Joined:
    Jan 26, 2012
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    It's interesting that bug report says fixed...but it's obviously not
     
  5. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    We will see soon a EasyApache 3.9.>1 (.2 maybe?)
    with curl fix and pcre patch ?

    It's hard to patch and keep an eye on all servers for those.
    Already a mess with both of them (curl when someone uses ssl, pcre with vBulletin forums)
     
  6. Worelock

    Worelock Active Member

    Joined:
    Mar 23, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Does anyone have any info on how to downgrade to PCRE 8.20?
     
  7. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    There is a patch, thanks to cPanel support (insert credits here):

     
  8. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    How and where would one install the patch ?

    Thanks
     
    #8 oldlock, Feb 12, 2012
    Last edited: Feb 12, 2012
  9. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Or did anyone find a way to downgrade the PCRE ? I've been searching for over an hour without any luck .......
     
  10. Avensen

    Avensen Member

    Joined:
    Feb 27, 2007
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    1
    Thanks chrismfz, your solution worked for me! Except this part:

    Code:
    echo '--- pcre-8.21/pcre_compile.c 2011/12/07 16:52:34 793
    +++ pcre-8.21/pcre_compile.c 2011/12/18 10:03:38 807
    @@ -1655,7 +1655,8 @@
    case OP_ASSERTBACK:
    case OP_ASSERTBACK_NOT:
    do cc += GET(cc, 1); while (*cc == OP_ALT);
    - /* Fall through */
    + cc += _pcre_OP_lengths[*cc];
    + break;' | patch -p0
    which gave me an error, however, I opened the pcre-8.21/pcre_compile.c file and edited it manually.
     
  11. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    What exactly didn't work with the patch ?

    Third command is a large copy paste not line by line, just the whole:
    except if the browser did something, or I misspelled a quote or something else. Maybe a cPanel staff
    review it and correct/fix it if I pasted it wrong.
     
  12. Avensen

    Avensen Member

    Joined:
    Feb 27, 2007
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    1
  13. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    The process results in the attached screenshot Capture.JPG
     
  14. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Probably a mistake on my part there. I'm running the process from the beginning.
     
  15. Avensen

    Avensen Member

    Joined:
    Feb 27, 2007
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    1
    in my case the error with patch command was:

    Code:
    patching file pcre-8.21/pcre_compile.c
    patch: **** malformed patch at line 4: case OP_ASSERTBACK:
     
  16. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    Forgot the first 2 commands. Entering the sources folder and extracting pcre.
     
  17. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Still returns an error. Screenshot attached.

    Capture.JPG

    I did the commands from the beginning.
     
  18. Worelock

    Worelock Active Member

    Joined:
    Mar 23, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    for the most part the info above worked. but I got a malformed line when I did the echo, here is what i did to make it work

    cd /var/cpanel/perl/easy/Cpanel/Easy/OptLib
    tar -xzvf pcre.pm.tar.gz

    created a patch file called pcre_patch & added this to it.

    --- pcre-8.21/pcre_compile.c 2011/12/07 16:52:34 793
    +++ pcre-8.21/pcre_compile.c 2011/12/18 10:03:38 807
    @@ -1655,7 +1655,8 @@
    case OP_ASSERTBACK:
    case OP_ASSERTBACK_NOT:
    do cc += GET(cc, 1); while (*cc == OP_ALT);
    - /* Fall through */
    + cc += _pcre_OP_lengths[*cc];
    + break;

    patch -p1 < pcre_patch
    it might ask for the filename to patch, I just typed pcre-8.21/pcre_compile.c
    and it patched the file.

    then I just ran the rest of the commands from above

    tar -czvf pcre.pm.tar.gz pcre-8.21/
    rm -Rf pcre-8.21/
    chattr +i pcre.pm.tar.gz
    rm -Rf /opt/pcre/
    /scripts/easyapache --build
    chattr -i pcre.pm.tar.gz

    My forums are now working again...I'm a happy camper
    the code for the patch came from this post http://bugs.exim.org/show_bug.cgi?id=1187
     
    #18 Worelock, Feb 12, 2012
    Last edited: Feb 13, 2012
  19. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    What is the extension for the patch file you created ? Could you detail the steps involved precisely ?
     
  20. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    There's a couple of inconsistencies in your file names too ??
     
Loading...

Share This Page