How can I know which version of Drupal is installed in my server?
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]
This meta tag appears only in Drupal Site. You can confirm that the web application is based on Drupal CMS.
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.
Drupal 8 programmatically: \DRUPAL::VERSION
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
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!
Drupal 7 admin->modules->(see version of core module like block ) admin->reports->status->drupal version
Drupal 8 admin->reports->updates : see Drupal core