If you encounter the following error after registering the Imunify360 key, it may be associated with the type of licenses suitable for your server.
WARNING: License is invalid for current server
Kindly verify if the Imunify360 license supports the number of users on your server.
To count the number of users on your server, run the following command based on your Server Environment.
cPanel
User Count:
# grep -Po '^(?<!#)\s*\w+\s*(?=:)' /etc/userplans | wc -l
List Users:# cut -d":" -f1 /etc/userplans | sort -n | uniq
Plesk
User Count:# plesk db "SELECT COUNT(DISTINCT cl_id) FROM domains"
DirectAdmin
User Count:# cut -d":" -f2 /etc/virtual/domainowners | sort -n | uniq | wc -l
List Users:# cut -d":" -f2 /etc/virtual/domainowners | sort -n | uniq
Linux (StandAlone)# cat /etc/passwd
If the number of users matches the license but registration fails, kindly execute the command below.
# imunify360-agent update-license