{"id":15274,"date":"2021-12-25T18:39:50","date_gmt":"2021-12-25T13:09:50","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=15274"},"modified":"2026-02-27T12:36:48","modified_gmt":"2026-02-27T07:06:48","slug":"install-multiple-php-extensions-pecl-ssh","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/","title":{"rendered":"How to Install Multiple PHP Extensions using PECL via SSH?"},"content":{"rendered":"<p>When doing PHP configurations to Linux hosting, you may have to install PHP extensions for all versions. To do that, you will have to run the installer for each individual version.<\/p>\n<h2>To Install a PHP Extension<\/h2>\n<p>1. Install a <strong>PHP module<\/strong> by running the <em>pecl command<\/em>:<\/p>\n<pre>\/opt\/cpanel\/ea-php72\/root\/usr\/bin\/pecl\n\/opt\/cpanel\/ea-php73\/root\/usr\/bin\/pecl<\/pre>\n<p>EasyApache 4 offers multiple versions of PHP. The command for each PHP version is different as shown in the above example with the PECL location for <em>PHP 7.2<\/em> and <em>PHP 7.3<\/em>.<\/p>\n<p>2. Install a module using the pecl install command:<\/p>\n<pre class=\"\">\/opt\/cpanel\/ea-php73\/root\/usr\/bin\/pecl install xmldiff<\/pre>\n<h2>To Install Multiple PHP Extensions<\/h2>\n<p>Loop through each PHP version and run the installer with the command:<\/p>\n<pre>ls \/opt\/cpanel\/ea-php{72..80}\/root\/usr\/bin\/pecl 2&gt;\/dev\/null | while read phpversion; do $phpversion install xmldiff; done<\/pre>\n<p>The code you see above is to loop through PHP versions from 72 through 80 while installing <em>xmldiff<\/em> for each of them.<\/p>\n<p>You can take that as an example to install a single PHP extension or multiple PHP extensions at once using PECL on a Linux server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When doing PHP configurations to Linux hosting, you may have to install PHP extensions for all versions. To do that, you will have to run the installer for each individual version. To Install a PHP Extension 1. Install a PHP module by running the pecl command: \/opt\/cpanel\/ea-php72\/root\/usr\/bin\/pecl \/opt\/cpanel\/ea-php73\/root\/usr\/bin\/pecl EasyApache 4 offers multiple versions of PHP. [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3048],"tags":[2881,2267,1731,2875,2876,2268,191,121],"class_list":["post-15274","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-website-and-application-management","tag-install-php-extensions-ssh","tag-install-php-version","tag-linux-hosting","tag-pecl","tag-pecl-commands","tag-php-extensions","tag-php-version","tag-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Multiple PHP Extensions using PECL via SSH?<\/title>\n<meta name=\"description\" content=\"This article will show how to install multiple PHP extensions on a WHM\/cPanel server using the PECL commands.\" \/>\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.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Multiple PHP Extensions using PECL via SSH?\" \/>\n<meta property=\"og:description\" content=\"This article will show how to install multiple PHP extensions on a WHM\/cPanel server using the PECL commands.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-25T13:09:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-27T07:06:48+00:00\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\"},\"author\":{\"name\":\"Prasad Khartadkar\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"headline\":\"How to Install Multiple PHP Extensions using PECL via SSH?\",\"datePublished\":\"2021-12-25T13:09:50+00:00\",\"dateModified\":\"2026-02-27T07:06:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\"},\"wordCount\":153,\"commentCount\":0,\"keywords\":[\"install PHP extensions SSH\",\"install php version\",\"Linux hosting\",\"PECL\",\"PECL commands\",\"php extensions\",\"PHP version\",\"SSH\"],\"articleSection\":[\"Website &amp; Application Management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\",\"name\":\"How to Install Multiple PHP Extensions using PECL via SSH?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2021-12-25T13:09:50+00:00\",\"dateModified\":\"2026-02-27T07:06:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This article will show how to install multiple PHP extensions on a WHM\/cPanel server using the PECL commands.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Multiple PHP Extensions using PECL via SSH?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Multiple PHP Extensions using PECL via SSH?","description":"This article will show how to install multiple PHP extensions on a WHM\/cPanel server using the PECL commands.","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.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Multiple PHP Extensions using PECL via SSH?","og_description":"This article will show how to install multiple PHP extensions on a WHM\/cPanel server using the PECL commands.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-12-25T13:09:50+00:00","article_modified_time":"2026-02-27T07:06:48+00:00","author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/"},"author":{"name":"Prasad Khartadkar","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"headline":"How to Install Multiple PHP Extensions using PECL via SSH?","datePublished":"2021-12-25T13:09:50+00:00","dateModified":"2026-02-27T07:06:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/"},"wordCount":153,"commentCount":0,"keywords":["install PHP extensions SSH","install php version","Linux hosting","PECL","PECL commands","php extensions","PHP version","SSH"],"articleSection":["Website &amp; Application Management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/","name":"How to Install Multiple PHP Extensions using PECL via SSH?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2021-12-25T13:09:50+00:00","dateModified":"2026-02-27T07:06:48+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This article will show how to install multiple PHP extensions on a WHM\/cPanel server using the PECL commands.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/install-multiple-php-extensions-pecl-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Install Multiple PHP Extensions using PECL via SSH?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/15274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=15274"}],"version-history":[{"count":8,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/15274\/revisions"}],"predecessor-version":[{"id":15290,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/15274\/revisions\/15290"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=15274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=15274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=15274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}