Skip to main content

PCRE version compiled by EasyApache and used by mod_rewrite

Comments

3 comments

  • cPanelMichael
    Hello :) The version of PCRE installed by EasyApache is found in the /opt directory. You can check the version via: /opt/pcre/bin/pcretest -C
    If you are having issues with Apache being linked to the wrong version of PCRE, ensure you review internal case 58625: [Case 58625] PCRE problems Thank you.
    0
  • regex
    [quote="cPanelMichael, post: 1540211"> The version of PCRE installed by EasyApache is found in the /opt directory.
    Hello Michael, thank you for your kind reply. To make sure I understand, does this mean, then, that every component reported by httpd -l that might use pcre will use the version in the /opt directory? I ask because there seem to be three versions: 7.8, 8.21, 8.31: pcretest -C => version 7.8 /usr/bin/pcretest -C => version 7.8 /opt/pcre/bin/pcretest -C => version 8.21 /home/virtfs/user/opt/pcre/bin/pcretest -C => version 8.21 /home/virtfs/user/usr/local/cpanel/3rdparty/bin/pcretest -C => version 8.31 /home/virtfs/user/usr/bin/pcretest -C => version 7.8 /usr/local/cpanel/3rdparty/bin/pcretest -C => version 8.31 I see that PHP uses the pcre in the folder you mentioned: "--with-pcre-regex=/opt/pcre" But just want to make sure about the components reported by httpd -l Thanks heaps, Wishing you a beautiful last day of the year
    0
  • cPanelMichael
    Yes, Apache should utilize the version of PCRE found in the /opt directory. However, there is an existing bug that results in this not happening in some cases. It's referenced here: [Case 58625] PCRE problems Thank you.
    0

Please sign in to leave a comment.