How to find version of Drupal installed

2019-02-05 10:41发布

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

标签: drupal
15条回答
Fickle 薄情
2楼-- · 2019-02-05 11:02

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.

查看更多
男人必须洒脱
3楼-- · 2019-02-05 11:06

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

查看更多
做自己的国王
4楼-- · 2019-02-05 11:09

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
查看更多
登录 后发表回答