0Day Forums
How to find version of Drupal installed - Printable Version

+- 0Day Forums (https://0day.red)
+-- Forum: Coding (https://0day.red/Forum-Coding)
+--- Forum: CMS (https://0day.red/Forum-CMS)
+---- Forum: Drupal (https://0day.red/Forum-Drupal)
+---- Thread: How to find version of Drupal installed (/Thread-How-to-find-version-of-Drupal-installed)

Pages: 1 2


How to find version of Drupal installed - juliannuol - 07-24-2023

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


RE: How to find version of Drupal installed - operxxkjwfsum - 07-24-2023

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"


RE: How to find version of Drupal installed - misjoinder115 - 07-24-2023

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.



RE: How to find version of Drupal installed - daniaarrj - 07-24-2023

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

One of my installs says:

define('VERSION', '5.6');


RE: How to find version of Drupal installed - saccharometry494484 - 07-24-2023

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:

[To see links please register here]




RE: How to find version of Drupal installed - cutin14 - 07-24-2023

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 -

[To see links please register here]




RE: How to find version of Drupal installed - conscription253083 - 07-24-2023

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!


RE: How to find version of Drupal installed - bacchian309437 - 07-24-2023

**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][1] or any online web service such as:

[To see links please register here]


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

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


[1]:

[To see links please register here]




RE: How to find version of Drupal installed - feudalism74 - 07-24-2023

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.


RE: How to find version of Drupal installed - harass915 - 07-24-2023

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();
}