Discover The Joomla Versions On Your Server
Here at GOZEN Host we provide Managed but also Self-Managed or UnManaged as they are called, servers.
Our continius effort is to help our customers with the best available tools to manage their servers, but sometimes it’s almost imposible …without getting dity and by that we mean …using SSH.
Today we present you with an oneliner that will help you identify the outdated Joomla Versions on your server.
If your server utilizes cPanel WHM we suggest the following:
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 “-”
If your server comes with Plesk then you should try the following:
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’ ) -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 “-”
If you can’t get results with the previous commands you can try the following:
find /home//public_html/ -type f -iwholename “*/libraries/joomla/version.php” -exec grep -H -e “\$RELEASE” -e “\$DEV_LEVEL” {} \;
The above command will show you the version number of each account you host on your server…something like that
/home/xxxxxx/public_html/libraries/cms/version/version.php - 2.5.14