{"id":9114,"date":"2022-04-02T09:03:14","date_gmt":"2022-04-02T09:03:14","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=9114"},"modified":"2022-04-02T09:05:28","modified_gmt":"2022-04-02T09:05:28","slug":"list-of-compiled-and-installed-php-modules-in-linux","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/","title":{"rendered":"List of Compiled and Installed PHP Modules in Linux"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">If you&#8217;ve installed a lot of PHP extensions or modules on your Linux system and want to know if a specific PHP module is installed or not, or if you just want a complete list of PHP extensions installed on your Linux system.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We&#8217;ll show you how to list all installed or built PHP modules from the Linux command line in this article.<\/span><\/p>\n<p><b>How to List Compiled PHP Modules<\/b><\/p>\n<p><b>php -m<\/b><span style=\"font-weight: 400;\"> is a general command that displays a list of all &#8220;compiled&#8221; PHP modules.<\/span><\/p>\n<pre><span style=\"font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 1em;\">#php -m<\/span><\/pre>\n<p><b>Complete PHP Modules<\/b><\/p>\n<div class=\"output-sh\">\n<pre>apc\r\nbz2\r\ncalendar\r\nCore\r\nctype\r\ncurl\r\ndate\r\ndom\r\nereg\r\nexif\r\nfileinfo\r\nfilter\r\nftp\r\ngd\r\ngettext\r\ngmp\r\nhash\r\niconv\r\njson\r\nlibxml\r\nmbstring\r\nmcrypt\r\nmysql\r\nmysqli\r\nopenssl\r\npcntl\r\npcre\r\nPDO\r\npdo_mysql\r\npdo_sqlite\r\nPhar\r\nreadline\r\nReflection\r\nsession\r\nshmop\r\nSimpleXML\r\nsockets\r\nSPL\r\nsqlite3\r\nstandard\r\ntidy\r\ntokenizer\r\nwddx\r\nxml\r\nxmlreader\r\nxmlwriter\r\nxsl\r\nzip\r\nzlib<\/pre>\n<\/div>\n<p>Using the grep command, you can look for a specific PHP module, such as php-ftp. Simply run the above program with the result piped to grep as displayed (grep -i flag means ignore case distinctions, thus typing FTP instead of FTP should work).<\/p>\n<pre># php -m | grep -i ftp\r\n\r\nftp<\/pre>\n<p><b>How to List Installed PHP Modules<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Use the relevant command for your distribution to list any PHP modules you&#8217;ve installed using a package manager.<\/span><\/p>\n<div class=\"command-sh\">\n<pre># yum list installed | grep -i php #RHEL\/CentOS\r\n# dnf list installed | grep -i php #Fedora 22+\r\n# dpkg --get-selections | grep -i php #Debian\/Ubuntu<\/pre>\n<\/div>\n<p><strong>Listing Installed PHP Modules<\/strong><\/p>\n<div class=\"\">\n<pre>php.x86_64 5.3.3-49.el6 @base\r\nphp-cli.x86_64 5.3.3-49.el6 @base\r\nphp-common.x86_64 5.3.3-49.el6 @base\r\nphp-devel.x86_64 5.3.3-49.el6 @base\r\nphp-gd.x86_64 5.3.3-49.el6 @base\r\nphp-mbstring.x86_64 5.3.3-49.el6 @base\r\nphp-mcrypt.x86_64 5.3.3-5.el6 @epel\r\nphp-mysql.x86_64 5.3.3-49.el6 @base\r\nphp-pdo.x86_64 5.3.3-49.el6 @base\r\nphp-pear.noarch 1:1.9.4-5.el6 @base\r\nphp-pecl-memcache.x86_64 3.0.5-4.el6 @base\r\nphp-php-gettext.noarch 1.0.12-1.el6 @epel\r\nphp-tidy.x86_64 5.3.3-49.el6 @base\r\nphp-xml.x86_64 5.3.3-49.el6 @base<\/pre>\n<div><\/div>\n<\/div>\n<p>If you wish to search for a specific module, use a pipe and the grep command, as illustrated.<\/p>\n<pre class=\"command-sh\"># yum list installed | grep -i php-mbstring #RHEL\/CentOS # dnf list installed | grep -i php-mbstring #Fedora 22+ # dpkg --get-selections | grep -i php-mbstring #Debian\/Ubuntu<\/pre>\n<p>Run to see all of the PHP command-line options.<\/p>\n<pre class=\"command-sh\"># php -h<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve installed a lot of PHP extensions or modules on your Linux system and want to know if a specific PHP module is installed or not, or if you just want a complete list of PHP extensions installed on your Linux system. We&#8217;ll show you how to list all installed or built PHP modules [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":9158,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>List of Compiled and Installed PHP Modules in Linux - cPanel Plesk<\/title>\n<meta name=\"description\" content=\"We&#039;ll use the php -m command as a general command. This command displays a list of all installed PHP modules and extensions If you&#039;ve installed a number of PHP extensions or modules on your Linux system\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"List of Compiled and Installed PHP Modules in Linux - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"We&#039;ll use the php -m command as a general command. This command displays a list of all installed PHP modules and extensions If you&#039;ve installed a number of PHP extensions or modules on your Linux system\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"List of Compiled and Installed PHP Modules in Linux\",\"datePublished\":\"2022-04-02T09:03:14+00:00\",\"dateModified\":\"2022-04-02T09:05:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\"},\"wordCount\":197,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png\",\"articleSection\":[\"Cpanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\",\"name\":\"List of Compiled and Installed PHP Modules in Linux - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png\",\"datePublished\":\"2022-04-02T09:03:14+00:00\",\"dateModified\":\"2022-04-02T09:05:28+00:00\",\"description\":\"We'll use the php -m command as a general command. This command displays a list of all installed PHP modules and extensions If you've installed a number of PHP extensions or modules on your Linux system\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png\",\"width\":1024,\"height\":538},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List of Compiled and Installed PHP Modules in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"List of Compiled and Installed PHP Modules in Linux - cPanel Plesk","description":"We'll use the php -m command as a general command. This command displays a list of all installed PHP modules and extensions If you've installed a number of PHP extensions or modules on your Linux system","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:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/","twitter_card":"summary_large_image","twitter_title":"List of Compiled and Installed PHP Modules in Linux - cPanel Plesk","twitter_description":"We'll use the php -m command as a general command. This command displays a list of all installed PHP modules and extensions If you've installed a number of PHP extensions or modules on your Linux system","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png","twitter_misc":{"Written by":"samama","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"List of Compiled and Installed PHP Modules in Linux","datePublished":"2022-04-02T09:03:14+00:00","dateModified":"2022-04-02T09:05:28+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/"},"wordCount":197,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png","articleSection":["Cpanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/","url":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/","name":"List of Compiled and Installed PHP Modules in Linux - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png","datePublished":"2022-04-02T09:03:14+00:00","dateModified":"2022-04-02T09:05:28+00:00","description":"We'll use the php -m command as a general command. This command displays a list of all installed PHP modules and extensions If you've installed a number of PHP extensions or modules on your Linux system","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/php-modules.png","width":1024,"height":538},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/list-of-compiled-and-installed-php-modules-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"List of Compiled and Installed PHP Modules in Linux"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=9114"}],"version-history":[{"count":15,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9114\/revisions"}],"predecessor-version":[{"id":9165,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9114\/revisions\/9165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/9158"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=9114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=9114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=9114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}