{"id":1960,"date":"2012-09-03T14:51:48","date_gmt":"2012-09-03T14:51:48","guid":{"rendered":"http:\/\/mooa.net\/ap\/?p=1960"},"modified":"2012-09-03T14:51:48","modified_gmt":"2012-09-03T14:51:48","slug":"pcre","status":"publish","type":"post","link":"https:\/\/mooa.net\/ap\/1960","title":{"rendered":"PCRE.."},"content":{"rendered":"<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \"><br \/><\/strong><\/p>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \"><br \/><\/strong><\/p>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \">PCRE Library is a library that is required to use HTTP rewrite when we do a compilation of <a href=\"http:\/\/www.asep.us\/2011\/03\/16\/powerful-web-server-nginx-php5-fastcgi-xcache-ubuntu\/\" style=\"padding: 0px; margin: 0px; color: rgb(35, 97, 161); \" target=\"_blank\" rel=\"noopener\">nginx<\/a><\/strong>. The PCRE package contains Perl Compatible Regular Expression libraries useful for implementing regular expression pattern matching.<\/p>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">If PCRE is not installed on the server, it will result in the following error message during the Nginx compliation:<\/p>\n<div class=\"wp_syntax\" style=\"padding: 0px; margin: 0px 0px 1.5em; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid silver; overflow-x: auto; overflow-y: hidden; width: 728px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">\n<div class=\"code\" style=\"padding: 2px 4px; margin: 0px; vertical-align: top; \">\n<pre class=\"text\" style=\"padding: 0.667em 0.917em; margin-top: 0px; margin-bottom: 0px; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: visible; clear: none; font-size: 12px; line-height: 1.333; width: auto; float: none; \">checking for PCRE library ... not found\nchecking for PCRE library in \/usr\/local\/ ... not found\nchecking for PCRE library in \/usr\/include\/pcre\/ ... not found\n.\/configure: error: the HTTP rewrite module requires the PCRE library.\nYou can either disable the module by using --without-http_rewrite_module\noption, or install the PCRE library into the system, or build the PCRE library\nstatically from the source with nginx by using --with-pcre=&lt;path&gt; option.<\/pre>\n<\/div>\n<\/div>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">How to Install the PCRE library so we can install Nginx Web Server with the HTTP rewrite module ? login into your server via SSH as user \u2018root\u2019<\/p>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \">1) First, goto a temporary directory<br style=\"padding: 0px; margin: 0px; \"><\/strong><\/p>\n<div class=\"wp_syntax\" style=\"padding: 0px; margin: 0px 0px 1.5em; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid silver; overflow-x: auto; overflow-y: hidden; width: 728px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">\n<div class=\"code\" style=\"padding: 2px 4px; margin: 0px; vertical-align: top; \">\n<pre class=\"bash\" style=\"padding: 0.667em 0.917em; margin-top: 0px; margin-bottom: 0px; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: visible; clear: none; font-size: 12px; line-height: 1.333; width: auto; float: none; \"> <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># cd \/usr\/local\/src<\/span><\/pre>\n<\/div>\n<\/div>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \">2) Download PCRE:<\/strong><\/p>\n<div class=\"wp_syntax\" style=\"padding: 0px; margin: 0px 0px 1.5em; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid silver; overflow-x: auto; overflow-y: hidden; width: 728px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">\n<div class=\"code\" style=\"padding: 2px 4px; margin: 0px; vertical-align: top; \">\n<pre class=\"bash\" style=\"padding: 0.667em 0.917em; margin-top: 0px; margin-bottom: 0px; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: visible; clear: none; font-size: 12px; line-height: 1.333; width: auto; float: none; \"> <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># w.get http:\/\/downloads.sourceforge.net\/pcre\/pcre-8.10.tar.bz2<\/span><\/pre>\n<\/div>\n<\/div>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \">3) Unpack and change to the pcre directory<\/strong><\/p>\n<div class=\"wp_syntax\" style=\"padding: 0px; margin: 0px 0px 1.5em; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid silver; overflow-x: auto; overflow-y: hidden; width: 728px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">\n<div class=\"code\" style=\"padding: 2px 4px; margin: 0px; vertical-align: top; \">\n<pre class=\"bash\" style=\"padding: 0.667em 0.917em; margin-top: 0px; margin-bottom: 0px; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: visible; clear: none; font-size: 12px; line-height: 1.333; width: auto; float: none; \"> <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># tar -jxf pcre-8.10.tar.bz2<\/span>\n <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># cd pcre-8.10<\/span><\/pre>\n<\/div>\n<\/div>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \">4) Confiure PCRE:<\/strong><\/p>\n<div class=\"wp_syntax\" style=\"padding: 0px; margin: 0px 0px 1.5em; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid silver; overflow-x: auto; overflow-y: hidden; width: 728px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">\n<div class=\"code\" style=\"padding: 2px 4px; margin: 0px; vertical-align: top; \">\n<pre class=\"bash\" style=\"padding: 0.667em 0.917em; margin-top: 0px; margin-bottom: 0px; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: visible; clear: none; font-size: 12px; line-height: 1.333; width: auto; float: none; \"> <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># .\/configure<\/span><\/pre>\n<\/div>\n<\/div>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \"><strong style=\"padding: 0px; margin: 0px; \">5) Create the installation files and install PCRE<\/strong><\/p>\n<div class=\"wp_syntax\" style=\"padding: 0px; margin: 0px 0px 1.5em; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid silver; overflow-x: auto; overflow-y: hidden; width: 728px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">\n<div class=\"code\" style=\"padding: 2px 4px; margin: 0px; vertical-align: top; \">\n<pre class=\"bash\" style=\"padding: 0.667em 0.917em; margin-top: 0px; margin-bottom: 0px; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: visible; clear: none; font-size: 12px; line-height: 1.333; width: auto; float: none; \"> <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># make<\/span>\n <span style=\"padding: 0px; margin: 0px; color: rgb(102, 102, 102); font-style: italic; \"># make install<\/span><\/pre>\n<\/div>\n<\/div>\n<p style=\"padding: 0px; margin: 0px 0px 1.571em; color: rgb(17, 17, 17); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 21.983333587646484px; \">Once done, you should be able to install <strong style=\"padding: 0px; margin: 0px; \">Nginx with the HTTP rewrite module<\/strong>.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PCRE Library is a library that is required to use HTTP rewrite when we do a compilation of nginx. The PCRE package contains Perl Compatible Regular Expression libraries useful for implementing regular expression pattern matching. If PCRE is not installed on the server, it will result in the following error message during the Nginx compliation: checking for PCRE library &#8230; not found checking for PCRE library in \/usr\/local\/ &#8230; not found checking for PCRE library in \/usr\/include\/pcre\/ &#8230; not found .\/configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using &#8211;without-http_rewrite_module option, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[108],"_links":{"self":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts\/1960"}],"collection":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/comments?post=1960"}],"version-history":[{"count":0,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts\/1960\/revisions"}],"wp:attachment":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/media?parent=1960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/categories?post=1960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/tags?post=1960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}