KNOWNHOST WIKI

User Tools

Site Tools


cms:find-cms-version

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cms:find-cms-version [2017/11/09 15:06]
Daniel P.
cms:find-cms-version [2020/06/10 08:04] (current)
Karson N. [Checking Joomla! Versions]
Line 7: Line 7:
 Performing the functions listed here require that you are logged in as root or a sudo user via SSH and are familiar with the command line. Performing the functions listed here require that you are logged in as root or a sudo user via SSH and are familiar with the command line.
  
 +\\
 ===== Checking WordPress Versions ===== ===== Checking WordPress Versions =====
  
-To confirm the 'latest' stable release of WordPress you can visit their official [[https://wordpress.org/download/|WordPress Download page]]. You should see something similar to: "The latest stable release of WordPress (Version **X.X**) is available in two formats from the links to your right." **X.X** being the latest version.+To confirm the 'latest' stable release of WordPress you can visit their official ((https://wordpress.org/download/))[[https://wordpress.org/download/|WordPress Download page]]. You should see something similar to: "The latest stable release of WordPress (Version **X.X**) is available in two formats from the links to your right." **X.X** being the latest version.
  
 Ok, now for the fun. "//How do I know the versions of ALL my wordpress installs?//" Ok, now for the fun. "//How do I know the versions of ALL my wordpress installs?//"
  
   * Default cPanel configurations:   * Default cPanel configurations:
-    * <code bash>find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \;</code>+<code bash> 
 +  find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \; 
 +</code>
   * Default Plesk configurations:   * Default Plesk configurations:
-    * <code bash>find /var/www/vhosts/*/httpdocs -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \;</code>+<code bash> 
 +  find /var/www/vhosts/*/httpdocs -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \; 
 +</code>
  
 You'll see output similar to the following: You'll see output similar to the following:
  
-<code>/home/cpanelacc/public_html/wp-includes/version.php:$wp_version = '3.9.2'; +<code> 
-/home/cpanelacc2/public_html/blog/wp-includes/version.php:$wp_version = '3.5.1'; +  /home/cpanelacc/public_html/wp-includes/version.php:$wp_version = '3.9.2'; 
-/home/cpanelacc3/public_html/blog/wp-includes/version.php:$wp_version = '3.7.4'; +  /home/cpanelacc2/public_html/blog/wp-includes/version.php:$wp_version = '3.5.1'; 
-/home/cpanelaccetc/public_html/wp-includes/version.php:$wp_version = '3.6';</code>+  /home/cpanelacc3/public_html/blog/wp-includes/version.php:$wp_version = '3.7.4'; 
 +  /home/cpanelaccetc/public_html/wp-includes/version.php:$wp_version = '3.6'; 
 +</code>
  
 This shows the location of the WordPress installation. /home/<CPANELUSER>/public_html/path and the version that's installed in that location.  This shows the location of the WordPress installation. /home/<CPANELUSER>/public_html/path and the version that's installed in that location. 
  
 If any of your WordPress installations are not using the most recent version of WordPress, it is very important to [[cms:how-can-i-upgrade-wordpress|update it]]. If any of your WordPress installations are not using the most recent version of WordPress, it is very important to [[cms:how-can-i-upgrade-wordpress|update it]].
 +
 +\\
 ===== Checking Joomla! Versions ===== ===== Checking Joomla! Versions =====
  
-To confirm the 'latest' stable release of Joomla! you can visit their official [[http://www.joomla.org/download.html|Joomla! Download page]]. You should see something similar to: "Joomla **X.X** is the newest version recommended for new installs. It includes the latest and greatest features of Joomla and mobile/responsive support." **X.X** being the latest version.+To confirm the 'latest' stable release of Joomla! you can visit their official ((http://www.joomla.org/download.html))[[http://www.joomla.org/download.html|Joomla! Download page]]. You should see something similar to: "Joomla **X.X** is the newest version recommended for new installs. It includes the latest and greatest features of Joomla and mobile/responsive support." **X.X** being the latest version. 
 + 
 +<WRAP info> 
 +Joomla has varied where it stores it's version information depending on it's major release -- you may need to alter the ''find'' command with the paths provided in the <quote>Other Ways</quote> sections in ((https://docs.joomla.org/How_to_check_the_Joomla_version%3F))[[https://docs.joomla.org/How_to_check_the_Joomla_version%3F|Joomla's Documentation]]. 
 + 
 +For example, Joomla 3.8.x and greater will be in ''./libraries/src/Version.php''
 +</WRAP>
  
   * Default cPanel configurations:   * Default cPanel configurations:
-    * <code bash>find /home/*/public_html/ -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print0 -exec perl -e 'while (<>) { $release = $1 if m/ \$RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/ \$DEV_LEVEL\s+= .(\d+).;/; } print qq( = $release.$dev\n);' {} \;</code>+<code bash> 
 +  find /home/*/public_html/ -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print0 -exec perl -e 'while (<>) { $release = $1 if m/ \$RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/ \$DEV_LEVEL\s+= .(\d+).;/; } print qq( = $release.$dev\n);' {} \; 
 +</code> 
   * Default Plesk configurations:   * Default Plesk configurations:
-    * <code bash>find /var/www/vhosts/*/httpdocs -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print0 -exec perl -e 'while (<>) { $release = $1 if m/ \$RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/ \$DEV_LEVEL\s+= .(\d+).;/; } print qq( = $release.$dev\n);' {} \;</code>+<code bash> 
 +  find /var/www/vhosts/*/httpdocs -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print0 -exec perl -e 'while (<>) { $release = $1 if m/ \$RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/ \$DEV_LEVEL\s+= .(\d+).;/; } print qq( = $release.$dev\n);' {} \; 
 +</code>
  
 You'll see output similar to the following: You'll see output similar to the following:
-<code>/home/cpanelacc/public_html/libraries/joomla/version.php = 1.5.2 +<code> 
-/home/user1/public_html/portal/libraries/cms/version/version.php = 2.5.5 +  /home/cpanelacc/public_html/libraries/joomla/version.php = 1.5.2 
-/home/another3/public_html/libraries/cms/version/version.php = 2.5.8 +  /home/user1/public_html/portal/libraries/cms/version/version.php = 2.5.5 
-/home/example/public_html/portal/libraries/joomla/version.php = 1.5.23 +  /home/another3/public_html/libraries/cms/version/version.php = 2.5.8 
-/home/default/public_html/new2/libraries/joomla/version.php = 1.5.23</code>+  /home/example/public_html/portal/libraries/joomla/version.php = 1.5.23 
 +  /home/default/public_html/new2/libraries/joomla/version.php = 1.5.23 
 +</code>
  
 This shows the location of the Joomla! installation. /home/<CPANELUSER>/public_html/path and the version that's installed in that location. This shows the location of the Joomla! installation. /home/<CPANELUSER>/public_html/path and the version that's installed in that location.
  
 +\\
 ===== Checking Drupal Versions ===== ===== Checking Drupal Versions =====
-To confirm the 'latest' stable release of Drupal you can visit their official [[https://www.drupal.org/project/drupal|Drupal Download page]]. You should see something similar to this screen shot sample:+To confirm the 'latest' stable release of Drupal you can visit their official ((https://www.drupal.org/project/drupal))[[https://www.drupal.org/project/drupal|Drupal Download page]]. You should see something similar to this screen shot sample:
  
-{{:cms:abe3275d3d571d435e80361991f03657.png?direct|}}+{{:cms:abe3275d3d571d435e80361991f03657.png?nolink&600|}}
  
 The "Recommended releases" section has two versions which are both considered the latest stable versions. **7.31** and **6.33** are both adequate here. The "Recommended releases" section has two versions which are both considered the latest stable versions. **7.31** and **6.33** are both adequate here.
  
   * Default cPanel configurations:   * Default cPanel configurations:
-    * <code bash>find /home/*/public_html/ -type f -iwholename "*/modules/system/system.info" -exec grep -H "version = \"" {} \;</code>+<code bash> 
 +  find /home/*/public_html/ -type f -iwholename "*/modules/system/system.info" -exec grep -H "version = \"" {} \; 
 +</code> 
   * Default Plesk configurations:   * Default Plesk configurations:
-    * <code bash>find /var/www/vhosts/*/httpdocs -type f -iwholename "*/modules/system/system.info" -exec grep -H "version = \"" {} \;</code>+<code bash> 
 +  find /var/www/vhosts/*/httpdocs -type f -iwholename "*/modules/system/system.info" -exec grep -H "version = \"" {} \; 
 +</code>
  
 You'll see ouput similar to the following: You'll see ouput similar to the following:
  
-<code>/home/baladon/public_html/modules/system/system.info:version = "7.9" +<code> 
-/home/flaviosp/public_html/openatrium/modules/system/system.info:version = "6.28" +  /home/baladon/public_html/modules/system/system.info:version = "7.9" 
-/home/ioclaser/public_html/modules/system/system.info:version = "6.28" +  /home/flaviosp/public_html/openatrium/modules/system/system.info:version = "6.28" 
-/home/tamiresm/public_html/modules/system/system.info:version = "7.10"</code> +  /home/ioclaser/public_html/modules/system/system.info:version = "6.28" 
- +  /home/tamiresm/public_html/modules/system/system.info:version = "7.10" 
-This shows the location of the Drupal installation. /home/<CPANELUSER>/public_html/path and the version that's installed in that location.  +</code>
  
 +This shows the location of the Drupal installation. /home/<CPANELUSER>/public_html/path and the version that's installed in that location.
cms/find-cms-version.1510261618.txt.gz · Last modified: 2017/11/09 15:06 by Daniel P.