{"id":4895,"date":"2016-08-10T11:34:28","date_gmt":"2016-08-10T11:34:28","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=4895"},"modified":"2021-02-04T05:58:30","modified_gmt":"2021-02-04T05:58:30","slug":"find-joomla-drupal-version-linux-cli","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/","title":{"rendered":"How to find Joomla or Drupal version from Linux CLI"},"content":{"rendered":"<p><span style=\"color: #000000;\">The outdated versions can cause many security issues on the server. In order to prevent this issue at some level, it is necessary to keep your scripts updated.<\/span><br \/>\n<span style=\"color: #000000;\">If you have a server with number of sites running on it, it is difficult to find out accounts which are using outdated Joomla or Drupal . The below scripts helps you to find outdated versions of Joomla or Drupal on your server.<\/span><!--more--><\/p>\n<h3><span style=\"color: #000000;\">1- Joomla! 1\/2\/3 version and release:<\/span><\/h3>\n<p><strong><span style=\"color: #000000;\">Linux\/cPanel:<\/span><\/strong><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true\">find \/home\/*\/public_html\/ -type f \\( -iwholename \u2018*\/libraries\/joomla\/version.php\u2019 -o -iwholename \r\n\u2018*\/libraries\/cms\/version.php\u2019 -o -iwholename \u2018*\/libraries\/cms\/version\/version.php\u2019 \\) \r\n-print -exec perl -e \u2018while (&lt;&gt;) { $release = $1 if m\/ \\$RELEASE\\s+= .([\\d.]+).;\/; $dev = $1 if \r\nm\/ \\$DEV_LEVEL\\s+= .(\\d+).;\/; } print qq($release.$dev\\n);\u2019 {} \\; &amp;&amp; echo \u201c-\u201c<\/pre>\n<\/div>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/find-outdated-versions-of-wordpress-on-your-cpanel-or-plesk-server\/\">How to check WordPress outdated versions.<\/a><\/p>\n<p><strong><span style=\"color: #000000;\">Linux\/Plesk:<\/span><\/strong><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true\">find \/var\/www\/vhosts\/*\/httpdocs\/ -type f \\( -iwholename \u2018*\/libraries\/joomla\/version.php\u2019 -o \r\n-iwholename \u2018*\/libraries\/cms\/version.php\u2019 -o -iwholename \u2018*\/libraries\/cms\/version\/version.php\u2019 \\) \r\n-print -exec perl -e \u2018while (&lt;&gt;) { $release = $1 if m\/ \\$RELEASE\\s+= .([\\d.]+).;\/; $dev = $1 if \r\nm\/ \\$DEV_LEVEL\\s+= .(\\d+).;\/; } print qq($release.$dev\\n);\u2019 {} \\; &amp;&amp; echo \u201c-\u201c<\/pre>\n<\/div>\n<h3><span style=\"color: #000000;\">2- Drupal version:<\/span><\/h3>\n<p><strong><span style=\"color: #000000;\">Linux\/cPanel:<\/span><\/strong><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">find \/home\/*\/public_html\/ -type f -iwholename \u201c*\/modules\/system\/system.info\u201d -exec grep -H \r\n\u201cversion = \\\u201d\u201d {} \\;<\/pre>\n<\/div>\n<p><strong>Linux\/Plesk:<\/strong><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true\">find \/var\/www\/vhosts\/*\/httpdocs\/ -type f -iwholename \u201c*\/modules\/system\/system.info\u201d -exec grep -H \r\n\u201cversion = \\\u201d\u201d {} \\;<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The outdated versions can cause many security issues on the server. In order to prevent this issue at some level, it is necessary to keep your scripts updated. If you have a server with number of sites running on it, it is difficult to find out accounts which are using outdated Joomla or Drupal . [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":4898,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-4895","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to find Joomla or Drupal version from Linux CLI - cPanel Plesk<\/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:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to find Joomla or Drupal version from Linux CLI - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"The outdated versions can cause many security issues on the server. In order to prevent this issue at some level, it is necessary to keep your scripts updated. If you have a server with number of sites running on it, it is difficult to find out accounts which are using outdated Joomla or Drupal . [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\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:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to find Joomla or Drupal version from Linux CLI\",\"datePublished\":\"2016-08-10T11:34:28+00:00\",\"dateModified\":\"2021-02-04T05:58:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\"},\"wordCount\":102,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\",\"name\":\"How to find Joomla or Drupal version from Linux CLI - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png\",\"datePublished\":\"2016-08-10T11:34:28+00:00\",\"dateModified\":\"2021-02-04T05:58:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png\",\"width\":268,\"height\":188},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find Joomla or Drupal version from Linux CLI\"}]},{\"@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\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to find Joomla or Drupal version from Linux CLI - cPanel Plesk","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\/find-joomla-drupal-version-linux-cli\/","twitter_card":"summary_large_image","twitter_title":"How to find Joomla or Drupal version from Linux CLI - cPanel Plesk","twitter_description":"The outdated versions can cause many security issues on the server. In order to prevent this issue at some level, it is necessary to keep your scripts updated. If you have a server with number of sites running on it, it is difficult to find out accounts which are using outdated Joomla or Drupal . [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to find Joomla or Drupal version from Linux CLI","datePublished":"2016-08-10T11:34:28+00:00","dateModified":"2021-02-04T05:58:30+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/"},"wordCount":102,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/","url":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/","name":"How to find Joomla or Drupal version from Linux CLI - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png","datePublished":"2016-08-10T11:34:28+00:00","dateModified":"2021-02-04T05:58:30+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/08\/Joomla-and-drupal-outdated-versions.png","width":268,"height":188},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/find-joomla-drupal-version-linux-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to find Joomla or Drupal version from Linux CLI"}]},{"@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\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/4895","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=4895"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/4895\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/4898"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=4895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=4895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=4895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}