Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33

Thread: Need to downgrade pcre from 8.21 to 8.20

  1. #16
    Registered Member
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    98
    cPanel Access Level

    DataCenter Provider

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    Forgot the first 2 commands. Entering the sources folder and extracting pcre.

  2. #17
    Registered Member
    Join Date
    Sep 2008
    Posts
    73

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    Still returns an error. Screenshot attached.

    Need to downgrade pcre from 8.21 to 8.20-capture.jpg

    I did the commands from the beginning.

  3. #18
    Registered Member
    Join Date
    Mar 2004
    Posts
    37

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    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
    Last edited by Worelock; 02-13-2012 at 06:40 AM. Reason: fixed some filename issues

  4. #19
    Registered Member
    Join Date
    Sep 2008
    Posts
    73

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    What is the extension for the patch file you created ? Could you detail the steps involved precisely ?

  5. #20
    Registered Member
    Join Date
    Sep 2008
    Posts
    73

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    There's a couple of inconsistencies in your file names too ??

  6. #21
    Registered Member
    Join Date
    Sep 2008
    Posts
    73

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    Here's the error message that presents ..

    Need to downgrade pcre from 8.21 to 8.20-capture.jpg

  7. #22
    Registered Member
    Join Date
    Mar 2004
    Posts
    37

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    you copied the text from the other site...not the code for the patch I posted.
    i removed the code/trunk/ from the file name in my code above.

    You don't need an extension for the patch either...its just a plain old text file that i created in the /var/cpanel/perl/easy/Cpanel/Easy/OptLib using the command nano pcre_patch

  8. #23
    Registered Member
    Join Date
    Aug 2001
    Location
    Brisbane, Australia
    Posts
    279

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    Interesting dont have a problem with this on my WHM server with PHP 5.3.10 but seems i'm running PCRE version 8.12 not 8.21 with CentOS 5.7.

  9. #24
    Registered Member
    Join Date
    Mar 2004
    Posts
    37

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    possibly because you upgraded to 5.3.10 before the pcre libraries where updated?

  10. #25
    Registered Member
    Join Date
    Sep 2008
    Posts
    73

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    Quote Originally Posted by Worelock View Post
    you copied the text from the other site...not the code for the patch I posted.
    i removed the code/trunk/ from the file name in my code above.

    You don't need an extension for the patch either...its just a plain old text file that i created in the /var/cpanel/perl/easy/Cpanel/Easy/OptLib using the command nano pcre_patch
    Thanks for your help.

    I've copied the text exactly and the error still presents ?

    Need to downgrade pcre from 8.21 to 8.20-patchfile.jpg

    Need to downgrade pcre from 8.21 to 8.20-error1.jpg

  11. #26
    Registered Member
    Join Date
    Mar 2004
    Posts
    37

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    i did post in my first post that it might ask you what file to patch...and i typed pcre_compile.c when it did what yours did in the screenshot

  12. #27
    Registered User
    Join Date
    Feb 2012
    Posts
    3
    cPanel Access Level

    Root Administrator

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    non of this methods works for me !

  13. #28
    Registered User
    Join Date
    Nov 2008
    Posts
    1

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    If you are following his directions, when it asks for the file, enter "pcre-8.21/pcre_compile.c"

    The patch failed when I tried to follow this advice. I just edited the pcre_compile.c file myself instead for that step.

    To do so, I just found line 1655 in /var/cpanel/perl/easy/Cpanel/Easy/OptLib/pcre-8.21/pcre_compile.c and replaced:

    case OP_ASSERTBACK:
    case OP_ASSERTBACK_NOT:
    do cc += GET(cc, 1); while (*cc == OP_ALT);
    /* Fall through */

    with:

    case OP_ASSERTBACK:
    case OP_ASSERTBACK_NOT:
    do cc += GET(cc, 1); while (*cc == OP_ALT);
    cc += _pcre_OP_lengths[*cc];
    break;

  14. #29
    Registered User
    Join Date
    Feb 2012
    Posts
    3
    cPanel Access Level

    Root Administrator

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    You Save My Time Dude

    thanks it worked like a charm

    thanks again

    Quote Originally Posted by scottelkin View Post
    If you are following his directions, when it asks for the file, enter "pcre-8.21/pcre_compile.c"

    The patch failed when I tried to follow this advice. I just edited the pcre_compile.c file myself instead for that step.

    To do so, I just found line 1655 in /var/cpanel/perl/easy/Cpanel/Easy/OptLib/pcre-8.21/pcre_compile.c and replaced:

    case OP_ASSERTBACK:
    case OP_ASSERTBACK_NOT:
    do cc += GET(cc, 1); while (*cc == OP_ALT);
    /* Fall through */

    with:

    case OP_ASSERTBACK:
    case OP_ASSERTBACK_NOT:
    do cc += GET(cc, 1); while (*cc == OP_ALT);
    cc += _pcre_OP_lengths[*cc];
    break;

  15. #30
    Registered Member
    Join Date
    Mar 2004
    Posts
    37

    Default Re: Need to downgrade pcre from 8.21 to 8.20

    yea..my bad, should have added the pcre-8.21/ in front of the file name
    I have edited the original post.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Apache 2.4.6 won't use the right PCRE
    By Daniel Bittar in forum EasyApache
    Replies: 1
    Last Post: 10-10-2013, 07:32 PM
  2. Why does cpanel use an old version of PCRE ?
    By aww in forum General Discussion
    Replies: 0
    Last Post: 01-18-2013, 01:33 AM
  3. easyapache and pcre bug !
    By abdullah.masry in forum cPanel Developers
    Replies: 6
    Last Post: 11-13-2012, 12:22 AM
  4. using pcre and modsec with apache 1
    By 4u123 in forum EasyApache
    Replies: 2
    Last Post: 02-25-2006, 12:51 PM
  5. Compiling php with pcre ?
    By tmellon in forum General Discussion
    Replies: 0
    Last Post: 05-02-2003, 03:29 PM
bargain