title: Which version of PCRE does Apache use for mod_rewrite?
body: <p>Several versions of PCRE are installed on my host.</p>
  
  <p>phpinfo() shows that PHP uses version 8.21. In addition it shows a folder: "pcre-regex=/opt/pcre"</p>
  
  <p>In the shell, when I run</p>
  
  <pre><code>/opt/pcre/bin/pcretest -C
  </code></pre>
  
  <p>the server shows more information for 8.21.</p>
  
  <p>When I omit the directory and run </p>
  
  <pre><code>pcretest -C
  </code></pre>
  
  <p>the server shows information for PCRE 7.8.</p>
  
  <p>What I'd like to know is which version of PCRE Apache uses for mod_rewrite.</p>
  
  <p>which httpd returned "/usr/sbin/httpd", so I tried</p>
  
  <pre><code>ldd /usr/sbin/httpd | grep pcre
  </code></pre>
  
  <p>but that returned nothing.</p>
  
  <p>Thanks in advance for any insights!</p>