Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok guys, I finally got the notes from my host about how they fixed the problem:</p> <pre><code>==================== Begin steps ============================== </code></pre> <p>when I started on this particular server, this was the data available:</p> <pre><code>[root@host2] ~ &gt;&gt; pcretest -C PCRE version 6.6 06-Feb-2006 Compiled with UTF-8 support Unicode properties support Newline character is LF Internal link size = 2 POSIX malloc threshold = 10 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack [root@host2] ~ &gt;&gt; /opt/pcre/bin/pcretest -C PCRE version 8.21 2011-12-12 Compiled with UTF-8 support Unicode properties support No just-in-time compiler support Newline sequence is LF \R matches all Unicode newlines Internal link size = 2 POSIX malloc threshold = 10 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack </code></pre> <p>Version 6.6 was also showing up in any phpinfo() webpage and also in php -i. By default in php versions >= 4.2, the Apache compile flag '--with-pcre-regex' is automagically included, so any EA run will use the 6.6. version that cPanel provides. The key to this was letting the OS know about the pcre libraries we want Apache to use, so the first step was to:</p> <pre><code>[root@host2] etc &gt;&gt; echo "/opt/pcre/lib/" &gt;&gt; /etc/ld.so.conf </code></pre> <p>Then running ldconfig -- now we have the libraries for both versions of PCRE available for the system users:</p> <pre><code>[root@host2] etc &gt;&gt; ldconfig -v | grep -i pcre /opt/pcre/lib: libpcre.so.0 -&gt; libpcre.so.0.0.1 libpcrecpp.so.0 -&gt; libpcrecpp.so.0.0.0 libpcreposix.so.0 -&gt; libpcreposix.so.0.0.0 libpcre.so.0 -&gt; libpcre.so.0.0.1 libpcre.so.0 -&gt; libpcre.so.0.0.1 libpcrecpp.so.0 -&gt; libpcrecpp.so.0.0.0 libpcreposix.so.0 -&gt; libpcreposix.so.0.0.0 libpcrecpp.so.0 -&gt; libpcrecpp.so.0.0.0 libpcreposix.so.0 -&gt; libpcreposix.so.0.0.0 [root@host2] etc &gt;&gt; </code></pre> <p>Yay! Now, to tell Apache to use those instead of the 6.6 ones, use the handy rawopts file and rebuild Apache:</p> <pre><code>[root@host2] etc &gt;&gt; echo "--with-pcre-regex=/opt/pcre" &gt;&gt; /var/cpanel/easy/apache/rawopts/all_php5 [root@host2.brucesallan.com] etc &gt;&gt; /scripts/easyapache --build </code></pre> <p>When it's done, test it:</p> <pre><code>[root@host2] etc &gt;&gt; php -i | grep -i "pcre library" PCRE Library Version =&gt; 8.21 2011-12-12 [root@host2.brucesallan.com] etc &gt;&gt; [root@host2] ~ &gt;&gt; pcretest -C PCRE PCRE version 8.21 2011-12-12 Compiled with UTF-8 support Unicode properties support Newline character is LF Internal link size = 2 POSIX malloc threshold = 10 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack [root@host2] ~ &gt;&gt; /opt/pcre/bin/pcretest -C PCRE PCRE version 8.21 2011-12-12 Compiled with UTF-8 support Unicode properties support No just-in-time compiler support Newline sequence is LF \R matches all Unicode newlines Internal link size = 2 POSIX malloc threshold = 10 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack ========================== End ============================ </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload