{"id":975,"date":"2014-05-08T13:58:12","date_gmt":"2014-05-08T13:58:12","guid":{"rendered":"http:\/\/tw.newtonstudio.com\/?p=975"},"modified":"2014-05-08T16:48:12","modified_gmt":"2014-05-08T16:48:12","slug":"install-pecl_http-on-centos","status":"publish","type":"post","link":"https:\/\/tw.newtonstudio.com\/?p=975","title":{"rendered":"Install PECL_HTTP on CentOS"},"content":{"rendered":"<p>pecl_http is required for the php function: http_build_url()<br \/>\nin order to use this function, we need to install the package manually,<br \/>\nbelow is the steps that required to install on your centOS server.<\/p>\n<p>1. Install PHP Pear if not installed yet:<br \/>\nyum install php-pear<\/p>\n<p>2. Install GCC if not installed yet:<br \/>\nyum install gcc<\/p>\n<p>3. Install cURL if not installed yet:<br \/>\nyum install curl-devel<\/p>\n<p>4. Install following library if not installed yet:<br \/>\nyum install php-devel<br \/>\nyum install zlib-devel<br \/>\nyum install pcre-devel<\/p>\n<p>5. Start the main installation (use default value for answering installation)<br \/>\nAs version 1.* is largely different with version 2.*, so we suggest install 1.7.6<br \/>\n\/usr\/bin\/pecl install pecl_http-1.7.6<\/p>\n<p>6. Add the following line to \/etc\/php.ini file<br \/>\nextension=http.so<\/p>\n<p>7. restart apache server so the extension can be loaded<br \/>\nservice httpd restart<\/p>\n<p>&#8212;&#8212;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pecl_http is required for the php function: http_build_ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[226,225],"class_list":["post-975","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-centos","tag-pecl_http"],"_links":{"self":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=975"}],"version-history":[{"count":5,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":983,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions\/983"}],"wp:attachment":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}