Discover The Joomla Versions On Your Server: Difference between revisions

From Joomla! Documentation

m Categories added
Cmb (talk | contribs)
Removed dead URL. Other markup and phrasing changes.
 
Line 1: Line 1:
When you operate a Dedicated or VPS server as a webhost or reseller with root access you might want to find from time to time outdated Joomla versions which could jeopardize the security of your server. If you have unlimited root access as administrator you will find for each user on your server the exact Joomla version with the following command (root)
When you operate a dedicated or VPS server as a webhost or reseller with root access, you might want to find outdated Joomla versions that could jeopardize the security of your server. If you have unlimited root access, use this command to find the Joomla version for each user:


<pre>find /home/*/public_html/ -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print -exec perl -e 'while (&lt;&gt;) { $release = $1 if m/RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/DEV_LEVEL\s+= .(\d+).;/; } print qq($release.$dev\n);' {} \; &amp;&amp; echo "-"</pre> The output will list all user accounts with their respective Joomla version
<pre>find /home/*/public_html/ -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print -exec perl -e 'while (&lt;&gt;) { $release = $1 if m/RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/DEV_LEVEL\s+= .(\d+).;/; } print qq($release.$dev\n);' {} \; &amp;&amp; echo "-"</pre>


<small><small>[https://gws-desk.com/tips-and-tricks/find-outdated-joomla-versions-on-server Original published by GWS-Desk.com]</small></small>
The output will list all user accounts with their Joomla version.
 
== See Also ==
[https://www.howtoforge.com/how_to_find_outdated_joomla_versions_on_your_server How to find outdated Joomla versions on your server to reduce the risk of being hacked]


<noinclude>
<noinclude>

Latest revision as of 22:56, 27 October 2022

When you operate a dedicated or VPS server as a webhost or reseller with root access, you might want to find outdated Joomla versions that could jeopardize the security of your server. If you have unlimited root access, use this command to find the Joomla version for each user:

find /home/*/public_html/ -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' \) -print -exec perl -e 'while (<>) { $release = $1 if m/RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/DEV_LEVEL\s+= .(\d+).;/; } print qq($release.$dev\n);' {} \; && echo "-"

The output will list all user accounts with their Joomla version.

See Also

How to find outdated Joomla versions on your server to reduce the risk of being hacked