How to find version of Drupal installed

Drupal

Drupal Problem Overview


How can I know which version of Drupal is installed in my server?

Drupal Solutions


Solution 1 - Drupal

You can get this by logging in to admin. Go to Administer → Reports → Status Report.

This will let you know all your config information of the site including your Drupal version.

Solution 2 - Drupal

You can also type:

drush status in your project folder. It will print out something like this:

$ drush status
 Drupal version         :  7.27 **<--**
 Default theme          :  garland
 Administration theme   :  garland
 PHP executable         :  php
 PHP configuration      :  "C:\Program Files (x86)\Drush\Php\php.ini"
 PHP OS                 :  WINNT
 Drush version          :  6.0
 Drush configuration    :
 Drush alias files      :  c:/users/spaden/.drush/pantheon.aliases.drushrc.php
 Drupal root            :  c:/Users/spaden/localSite/

Hope this helps!

Solution 3 - Drupal

To easily check Drupal version, go to www.yourwebsite.com/CHANGELOG.txt

CHANGELOG.txt will show you the version and change log updates to the Drupal build version.

Solution 4 - Drupal

This is defined as a global PHP variable in /includes/bootstrap.inc within D7. Example: define('VERSION', '7.14'); So use it like this...

if (VERSION >= 7.1) {
  do_something();
}

Solution 5 - Drupal

In Drupal 7

Open CHANGELOG.txt and the top most version will be the installed version.

In Drupal 8

Open core/lib/Drupal.php file and there will be a version mentioned like const VERSION = '8.1.8';

Drush Tool

Drush status

Admin Interface

Go to Administer -> Reports -> Status Report or enter URL /admin/reports/status

> Above is the simplest way otherwise installed wappalyzer browser > addons and see the magic.

Solution 6 - Drupal

Log into Drupal admin interface. Then go to "Administer -> Available Updates". And you'll be able to see what drupal version your are using.

or you can go to the file /modules/system/system.info and you will see something like version = "6.2"

Solution 7 - Drupal

From the database

Run the following query:

SELECT info FROM system WHERE type = 'module' AND name = 'node';

After, you will receive a serialized string value like:

> a:10:{s:4:"name";s:4:"Node";s:11:"description";s:66:"Allows content to be submitted to the site and displayed on pages.";s:7:"package";s:15:"Core - required";s:7:"version";s:4:"6.20";s:4:"core";s:3:"6.x";s:7:"project";s:6:"drupal";s:9:"datestamp";s:10:"1292447788";s:12:"dependencies";a:0:{}s:10:"dependents";a:0:{}s:3:"php";s:5:"4.3.5";}

Then, unserialize this string. You can use the php unserialize function or any online web service such as: http://unserialize.me

You should see two array elements as below which shows the current version number:

[version] => 6.20
[core] => 6.x

Solution 8 - Drupal

The really easy way is: go to your site, and into the Browser go to: view source.

Generally you can find:

<meta name="generator" content="Drupal 7 (http://drupal.org)" />

Or just press: Ctrl/Cmd "F": And find the word Drupal.

You will find the Drupal version in the code without check anything in the admin.

Solution 9 - Drupal

For Drupal7

Two ways you can find installed drupal version.for this you have to logged in as admin.

1.Go to Url 'admin/reports/status',on status report page it will show first drupal with its version.

2.Go to Url 'admin/modules',on finding core tab ,we can find drupal contributed modules with 'version'.

For Drupal8

Open drupal\core\lib\Drupal.php in your text editor

you will see something like this (from line 79 to line 84)

open drupal\core\lib\Drupal.php in your text editor

you will see something like this (from line 79 to line 84)

class Drupal {

/**
* The current system version.
*/
const VERSION = '8.2.3';

Solution 10 - Drupal

Drupal 8 programmatically: \DRUPAL::VERSION

Solution 11 - Drupal

For older versions you can find the details here: modules/system/system.module

One of my installs says:

define('VERSION', '5.6');

Solution 12 - Drupal

use drush to know which drupal version you are using. command : drush status

Below is the list of information it will show:

Drupal version : 8.7.10                                                  
 Site URI       : http://default                                          
 DB driver      : mysql                                                   
 DB hostname    : localhost                                               
 DB port        : 3306                                                    
 DB username    : root                                                    
 DB name        : drupal_8_7_10                                           
 PHP binary     : /usr/bin/php7.4                                         
 PHP config     : /etc/php/7.4/cli/php.ini                                
 PHP OS         : Linux                                                   
 Drush script   : /opt/lampp/htdocs/drupal-8.7.10/vendor/drush/drush/drus 
                  h                                                       
 Drush version  : 10.2.0                                                  
 Drush temp     : /tmp                                                    
 Drush configs  : /opt/lampp/htdocs/drupal-8.7.10/vendor/drush/drush/drus 
                  h.yml                                                   
 Drupal root    : /opt/lampp/htdocs/drupal-8.7.10                         
 Site path      : sites/default     

    

Solution 13 - Drupal

Indeed, looking at any .info file on your Drupal instance in any theme or module folder (inside /sites/all) may be easiest/quickest for you as opposed to adding PHP code though both are quite easy.

If for any reason you don't have FTP/SSH access to your Drupal server, there are other ways like viewing page source in the browser (if you know what look for) or a simple browser pluggin such as 'Drupal for Firebug' or similar utlity:

https://addons.mozilla.org/en-US/firefox/addon/drupal-for-firebug/

Solution 14 - Drupal

Alternatively you can install Drupal version check plugin in your browser and click on the drupal icon in your navigation bar. This is the easiest way to check Drupal version.

Here is the link to the plugin - https://addons.mozilla.org/en-US/firefox/addon/drupal-version-check/

Solution 15 - Drupal

Open project folder. Look for CHANGELOG.txt and open it. Here you can find version.

Solution 16 - Drupal

Drupal 7 admin->modules->(see version of core module like block ) admin->reports->status->drupal version

Drupal 8 admin->reports->updates : see Drupal core

Solution 17 - Drupal

In Drupal admin panel, you can find using the menu as follows, Drupal admin Reports->Status report. or else

You can find Drupal version via URL or View Source.

URL=> type CHANGELOG.txt in <http://example.com/CHANGELOG.txt>

View Source => You can find this by the following [meta tag]

enter image description here

This meta tag appears only in Drupal Site. You can confirm that the web application is based on Drupal CMS.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questiontibin mathewView Question on Stackoverflow
Solution 1 - DrupalJitendra KumarView Answer on Stackoverflow
Solution 2 - DrupalAbbyPadenView Answer on Stackoverflow
Solution 3 - DrupaljaesperanzaView Answer on Stackoverflow
Solution 4 - DrupaldoublejoshView Answer on Stackoverflow
Solution 5 - DrupalVipin MittalView Answer on Stackoverflow
Solution 6 - DrupalSoufiane HassouView Answer on Stackoverflow
Solution 7 - DrupaltfontView Answer on Stackoverflow
Solution 8 - DrupalKenneth BregatView Answer on Stackoverflow
Solution 9 - DrupalMoby MView Answer on Stackoverflow
Solution 10 - DrupalTvCView Answer on Stackoverflow
Solution 11 - DrupalSuchiView Answer on Stackoverflow
Solution 12 - DrupalAnisha ShaikhView Answer on Stackoverflow
Solution 13 - DrupalJaT5View Answer on Stackoverflow
Solution 14 - Drupalvipul_vjView Answer on Stackoverflow
Solution 15 - Drupalsreekanth kuriyalaView Answer on Stackoverflow
Solution 16 - Drupalnasrin.mkhView Answer on Stackoverflow
Solution 17 - DrupalPraveen NeelanathanView Answer on Stackoverflow