{"id":285,"date":"2009-04-03T00:17:29","date_gmt":"2009-04-03T00:17:29","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=285"},"modified":"2010-07-17T01:35:45","modified_gmt":"2010-07-17T01:35:45","slug":"how-to-install-pecl-library-in-shared-server","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2009\/04\/how-to-install-pecl-library-in-shared-server\/","title":{"rendered":"How to Install PECL Library in shared server?"},"content":{"rendered":"<p>Most of us don\u2019t have installation access in all LAMP based shared server.<br \/>\nIn this Open source world you never know which function and which code you have to use.<br \/>\nRecently I have encountered one php function which was really important for me to post something from one server to another.<br \/>\nThat was\u00a0 <strong>http_post_fields()<\/strong> which is available\u00a0 in\u00a0 <strong>pecl_http<\/strong> php extension.<br \/>\npecl_http php extension is used to provide a convenient and powerful set of functionality for most of PHP\u2019s applications, like HTTP urls, dates, redirects, headers and messages etc.<br \/>\nAfter spending so many hours I figured out how to install and make it work.<br \/>\nI would be happy if you can utilize my hard work and install your own without any paid help!<\/p>\n<p>These are the Steps<br \/>\n1. Download directly in you server for example html folder or wherever you want to install.<\/p>\n<h4>wget http:\/\/pecl.php.net\/get\/pecl_http-1.6.1.tgz<\/h4>\n<p>2.\u00a0 Uncompress the files using following commands<\/p>\n<h4>tar \u2013xzvf pecl_http-1.6.1.tgz<\/h4>\n<h4>cd pecl_http-*<\/h4>\n<p>Note : If there is one more directory after untar please remove that.<\/p>\n<p>3.\u00a0 Compile and install using these commands (Just run one after another)<\/p>\n<h4>A.\u00a0 phpize<\/h4>\n<h4>B.\u00a0 .\/configure<\/h4>\n<h4>C.\u00a0 make<\/h4>\n<h4>D.\u00a0 make install<\/h4>\n<p>4.\u00a0 After completing step 3 add following line in your PHP.INI file.<br \/>\nNow a day\u2019s giving php.ini access is fashion!<\/p>\n<h4>extension=http.so<\/h4>\n<p>5. Add newly installed pecl_http php extension to php.ini file. Its important to add correct path, if you are installing from root this step is not required.<\/p>\n<h4>extension_dir=\/home\/this_is_your_server_path\/html\/pecl_http-1.6.1\/modules<\/h4>\n<p>Thats it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most of us don\u2019t have installation access in all LAMP based shared server. In this Open source world you never know which function and which code you have to use. Recently I have encountered one php function which was really important for me to post something from one server to another. That was\u00a0 http_post_fields() which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":15,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":856,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions\/856"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}