{"id":836,"date":"2009-08-28T13:55:42","date_gmt":"2009-08-28T13:55:42","guid":{"rendered":"http:\/\/www.gosquared.com\/liquidicity\/?p=836"},"modified":"2019-11-28T13:02:48","modified_gmt":"2019-11-28T13:02:48","slug":"howto-installing-pecl-extensions-on-a-mediatemple-dv-server","status":"publish","type":"post","link":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server","title":{"rendered":"Manually Install PECL Extensions on a Media Temple (dv) Server"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\" alt=\"Dev with Geoff - Development help and advice from our CTO Geoff Wagstaff\" width=\"790\" height=\"100\"\/><\/p>\n<p>Having used <a href=\"http:\/\/www.mediatemple.net\">MediaTemple<\/a>&#8216;s hosting options for quite some time, we&#8217;ve built up a fair amount of experience working with their (dv) servers. Every now and again you may find it necessary to extend the core functionality of the pre-compiled PHP supplied with the (dv) server using <a href=\"http:\/\/pecl.php.net\/\">PECL extensions<\/a> to give your apps that little bit more of a cutting edge.<\/p>\n<p>There is a quick and easy way to insall the PECL modules on your (dv) server: pecl install [extension]. However, if for whatever reason this does not work for you, this guide documents a manual installation method.<\/p>\n<p><!--more--><\/p>\n<p><strong>A preliminary word of warning &#038; disclaimer<\/strong><br \/>\nWe have only tested the following guide on (dv) 3.5 servers, and cannot in any way guarantee that this method will provide a stable and\/or functional installation of your chosen PECL module(s) on your server, version 3.5 or otherwise. If your (dv) server is not version 3.5, this guide may not work due to possible path and environment differences. Therefore, any attempt to follow this guide is undertaken at entirely at your own risk and we cannot be held responsible for any resultant problems.<\/p>\n<p>Phew, now I got that off my chest, let&#8217;s get started.<\/p>\n<p><strong>Paths needed<\/strong><br \/>\nPHP extension (modules) directory: <em>\/usr\/lib\/php\/modules<\/em><br \/>\nphp.ini file: <em>\/etc\/php.ini<\/em><br \/>\nPHP extension .ini files (to facilitate autoload of extensions): <em>\/etc\/php.d\/<\/em><\/p>\n<p>For this to work, you&#8217;ll need to have root access to your server, and you&#8217;ll most probably need developer tools installed as well. To obtain these, log in to your MediaTemple (ac) panel and enable them both there.<\/p>\n<p>Note: Replace [extension] with actual extension name<\/p>\n<p>Open up your terminal using a remote SSH client (if you don&#8217;t have one, install an SSH client like <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">PUTTY<\/a>) and log into your server as root.<\/p>\n<p>Download the extension from PECL to somewhere on the server (e.g. \/tmp\/download\/):<br \/>\n<code>cd \/tmp\/download\/<br \/>\nwget http:\/\/pecl.php.net\/get\/[extension].tgz<\/code><\/p>\n<p><strong>N.B.<\/strong> For this bit, [extension] must be replaced by your extension name including any version numbers of the version you downloaded e.g. memcache-2.2.5<\/p>\n<p>Extract the compressed package and change directory to the extracted source folder<br \/>\n<code>tar -xvf [extension].tgz<br \/>\ncd [extension]<\/code><\/p>\n<p>From this point onwards, [extension] now represents the actual name of the extension, for example, memcache instead of memcache-2.2.5<\/p>\n<p>Prepare the build environment for the extension and make the binaries<br \/>\n<code>phpize && .\/configure --enable-[extension] && make<\/code><\/p>\n<p>You may see lots of code\/writing flicking up in your terminal. This is normal.<br \/>\nIf all that goes good, run:<br \/>\n<code>make install<\/code><\/p>\n<p>This should install the shared extension into <em>\/usr\/lib\/php\/extensions<\/em>. If this works properly, the [extension].so extension file will be automatically placed in the PHP extensions directory (<em>\/usr\/lib\/php\/extensions<\/em>)<\/p>\n<p>Navigate to folder containing the .ini files for extensions:<br \/>\n<code>cd \/etc\/php.d\/<\/code><\/p>\n<p>Create a new file called [extension].ini<br \/>\n<code>vi [extension].ini<\/code><\/p>\n<p>Press i and write\/paste the following inside, <strong>replacing [extension] with the extension name<\/strong>:<br \/>\n<code>; Enable [extension] extension<br \/>\nextension=[extension].so<\/code><\/p>\n<p>Press ESC then type :wq and press enter to save and exit the file.<\/p>\n<p>Restart apache so PHP can load the new extension when it starts up:<br \/>\n<code>\/etc\/init.d\/httpd restart<\/code><\/p>\n<p>That&#8217;s it! The new module is now installed and should be working properly. If you want to verify this, create a test.php file somewhere on your site, place <\/p>\n<pre lang=\"PHP\">< ?php phpinfo(); ?><\/pre>\n<p> inside and access it with your browser. Information for the new extension will appear in the list of extensions if everything has installed correctly.<\/p>\n<p>We hope this helps you out. We would greatly appreciate it if anyone can test this on (dv) servers older or newer than (dv) 3.5 and let us know the result.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having used MediaTemple&#8216;s hosting options for quite some time, we&#8217;ve built up a fair amount of experience working with their&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1452],"tags":[622,684],"class_list":["post-836","post","type-post","status-publish","format-standard","hentry","category-engineering","tag-module","tag-pecl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.6 (Yoast SEO v19.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Manually Install PECL Extensions on a Media Temple (dv) Server - GoSquared Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manually Install PECL Extensions on a Media Temple (dv) Server\" \/>\n<meta property=\"og:description\" content=\"Having used MediaTemple&#8216;s hosting options for quite some time, we&#8217;ve built up a fair amount of experience working with their...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server\" \/>\n<meta property=\"og:site_name\" content=\"GoSquared Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GoSquared\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-28T13:55:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-28T13:02:48+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TheDeveloper\" \/>\n<meta name=\"twitter:site\" content=\"@GoSquared\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Geoff Wagstaff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#organization\",\"name\":\"GoSquared\",\"url\":\"https:\/\/www.gosquared.com\/blog\/\",\"sameAs\":[\"https:\/\/instagram.com\/gosquaredteam\",\"https:\/\/www.linkedin.com\/company\/go-squared-ltd.\",\"https:\/\/www.facebook.com\/GoSquared\",\"https:\/\/twitter.com\/GoSquared\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png\",\"contentUrl\":\"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png\",\"width\":1270,\"height\":250,\"caption\":\"GoSquared\"},\"image\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#website\",\"url\":\"https:\/\/www.gosquared.com\/blog\/\",\"name\":\"GoSquared Blog\",\"description\":\"Turn visitors into customers.\",\"publisher\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.gosquared.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#primaryimage\",\"url\":\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\",\"contentUrl\":\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#webpage\",\"url\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server\",\"name\":\"Manually Install PECL Extensions on a Media Temple (dv) Server - GoSquared Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#primaryimage\"},\"datePublished\":\"2009-08-28T13:55:42+00:00\",\"dateModified\":\"2019-11-28T13:02:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.gosquared.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manually Install PECL Extensions on a Media Temple (dv) Server\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#webpage\"},\"author\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448\"},\"headline\":\"Manually Install PECL Extensions on a Media Temple (dv) Server\",\"datePublished\":\"2009-08-28T13:55:42+00:00\",\"dateModified\":\"2019-11-28T13:02:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#webpage\"},\"wordCount\":582,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#primaryimage\"},\"thumbnailUrl\":\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\",\"keywords\":[\"Module\",\"PECL\"],\"articleSection\":[\"Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448\",\"name\":\"Geoff Wagstaff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g\",\"caption\":\"Geoff Wagstaff\"},\"sameAs\":[\"https:\/\/twitter.com\/TheDeveloper\"],\"url\":\"https:\/\/www.gosquared.com\/blog\/author\/echo\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Manually Install PECL Extensions on a Media Temple (dv) Server - GoSquared Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server","og_locale":"en_US","og_type":"article","og_title":"Manually Install PECL Extensions on a Media Temple (dv) Server","og_description":"Having used MediaTemple&#8216;s hosting options for quite some time, we&#8217;ve built up a fair amount of experience working with their...","og_url":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server","og_site_name":"GoSquared Blog","article_publisher":"https:\/\/www.facebook.com\/GoSquared","article_published_time":"2009-08-28T13:55:42+00:00","article_modified_time":"2019-11-28T13:02:48+00:00","og_image":[{"url":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg"}],"twitter_card":"summary_large_image","twitter_creator":"@TheDeveloper","twitter_site":"@GoSquared","twitter_misc":{"Written by":"Geoff Wagstaff","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.gosquared.com\/blog\/#organization","name":"GoSquared","url":"https:\/\/www.gosquared.com\/blog\/","sameAs":["https:\/\/instagram.com\/gosquaredteam","https:\/\/www.linkedin.com\/company\/go-squared-ltd.","https:\/\/www.facebook.com\/GoSquared","https:\/\/twitter.com\/GoSquared"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png","contentUrl":"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png","width":1270,"height":250,"caption":"GoSquared"},"image":{"@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.gosquared.com\/blog\/#website","url":"https:\/\/www.gosquared.com\/blog\/","name":"GoSquared Blog","description":"Turn visitors into customers.","publisher":{"@id":"https:\/\/www.gosquared.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.gosquared.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#primaryimage","url":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg","contentUrl":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg"},{"@type":"WebPage","@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#webpage","url":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server","name":"Manually Install PECL Extensions on a Media Temple (dv) Server - GoSquared Blog","isPartOf":{"@id":"https:\/\/www.gosquared.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#primaryimage"},"datePublished":"2009-08-28T13:55:42+00:00","dateModified":"2019-11-28T13:02:48+00:00","breadcrumb":{"@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.gosquared.com\/blog"},{"@type":"ListItem","position":2,"name":"Manually Install PECL Extensions on a Media Temple (dv) Server"}]},{"@type":"Article","@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#article","isPartOf":{"@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#webpage"},"author":{"@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448"},"headline":"Manually Install PECL Extensions on a Media Temple (dv) Server","datePublished":"2009-08-28T13:55:42+00:00","dateModified":"2019-11-28T13:02:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#webpage"},"wordCount":582,"commentCount":0,"publisher":{"@id":"https:\/\/www.gosquared.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#primaryimage"},"thumbnailUrl":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg","keywords":["Module","PECL"],"articleSection":["Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.gosquared.com\/blog\/howto-installing-pecl-extensions-on-a-mediatemple-dv-server#respond"]}]},{"@type":"Person","@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448","name":"Geoff Wagstaff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g","caption":"Geoff Wagstaff"},"sameAs":["https:\/\/twitter.com\/TheDeveloper"],"url":"https:\/\/www.gosquared.com\/blog\/author\/echo"}]}},"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/posts\/836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/comments?post=836"}],"version-history":[{"count":0,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/posts\/836\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/media?parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/categories?post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/tags?post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}