{"id":25139,"date":"2022-02-16T12:32:44","date_gmt":"2022-02-16T12:32:44","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/?p=25139"},"modified":"2023-03-23T09:45:02","modified_gmt":"2023-03-23T09:45:02","slug":"vps-how-to-list-compiled-php-modules-from-ssh","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/","title":{"rendered":"VPS: How to list compiled PHP modules from SSH"},"content":{"rendered":"<article id=\"article-body\" class=\"article-body\">\n<blockquote><p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0<\/span><\/p><\/blockquote>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">To check which modules are available for the different versions by calling the different PHP versions directly.<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">On one of 1-grid&#8217;s Fully Managed VPS servers running CentOS 7, the full path would be as follows.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">root@host [~]# \/opt\/cpanel\/ea-php73\/root\/usr\/bin\/php-cgi<\/span><\/pre>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">So, if I run that command with the -m flag, it then provides us will all the modules specifically for PHP 7.3. If you switch the\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">path to ea-php72 or 56, then it would give the modules for that PHP version.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">root@host [~]# \/opt\/cpanel\/ea-php73\/root\/usr\/bin\/php-cgi -m\n[PHP Modules]\nbcmath\nbz2\ncgi-fcgi\nCore\nctype\ncurl\ndate\ndom\nexif\nfileinfo\nfilter\nftp\ngd\nhash\niconv\nimagick\njson\nlibxml\nmbstring\nmysqli\nmysqlnd\nopenssl\npcntl\npcre\nPDO\npdo_mysql\npdo_sqlite\nPhar\nposix\nreadline\nReflection\nsession\nSimpleXML\nSPL\nsqlite3\nstandard\ntokenizer\nwddx\nxml\nxmlreader\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\nroot@host [~]# <\/span><\/pre>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">On a Fully Managed VPS server, the full path would be as follows.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">root@host [~]# \/opt\/remi\/php73\/root\/usr\/bin\/php-cgi<\/span><\/pre>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Or, you can use the built-in shortcut commands.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">root@host [~]# php73 -m\n\nroot@host [~]# php56 -m\n\nroot@host [~]# php54 -m<\/span><\/pre>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0 \u00a0 \u00a0 To check which modules are available for the different versions by calling the different PHP versions directly. On one of 1-grid&#8217;s Fully Managed VPS servers running CentOS 7, the&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[1197],"ht-kb-tag":[1300,431,480,642,1301,738,949,1101],"class_list":["post-25139","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-vps","ht_kb_tag-compiled","ht_kb_tag-from","ht_kb_tag-how-to","ht_kb_tag-module","ht_kb_tag-modules","ht_kb_tag-php","ht_kb_tag-ssh","ht_kb_tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VPS: How to list compiled PHP modules from SSH -<\/title>\n<meta name=\"description\" content=\"This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VPS: How to list compiled PHP modules from SSH -\" \/>\n<meta property=\"og:description\" content=\"This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-23T09:45:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/\",\"name\":\"VPS: How to list compiled PHP modules from SSH -\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-02-16T12:32:44+00:00\",\"dateModified\":\"2023-03-23T09:45:02+00:00\",\"description\":\"This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VPS: How to list compiled PHP modules from SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VPS: How to list compiled PHP modules from SSH -","description":"This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0","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:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/","og_locale":"en_US","og_type":"article","og_title":"VPS: How to list compiled PHP modules from SSH -","og_description":"This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0","og_url":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2023-03-23T09:45:02+00:00","twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/","url":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/","name":"VPS: How to list compiled PHP modules from SSH -","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-02-16T12:32:44+00:00","dateModified":"2023-03-23T09:45:02+00:00","description":"This article provides you with information on how to list compiled PHP modules via SSH on your VPS server.\u00a0","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-list-compiled-php-modules-from-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"VPS: How to list compiled PHP modules from SSH"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=25139"}],"version-history":[{"count":3,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25139\/revisions"}],"predecessor-version":[{"id":30871,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25139\/revisions\/30871"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=25139"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=25139"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=25139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}