If your cPanel/WHM has expired and you are not able to create new account from WHM panel although you have root access to the server, you can still create and use new accounts via SSH. Lets do it now.
Follow below steps to add/create new cPanel account from SSH:
Login to SSH via Putty or any SSH client with root access
execute following command:
/scripts/createacct domain user pass quota cpmod ip[y/n] cgi[y/n] frontpage[y/n] maxftp maxsql maxpop maxlst maxsub bwlimit hasshell[y/n] owner plan maxpark maxaddon featurelist contactemail
Where :
domain = domain.com
user = username
pass = password
quota = disk quota
cpmod = cPanel theme (e.g x3)
ip[y/n] = dedicated IP (y for yes, n for no)
cgi[y/n] = enable cgi (y for yes, n for no)
frontpage[y/n] = enable frontpage (y for yes, n for no)
maxftp = FTP accounts user can create
maxsql = MySql accounts user can create
maxpop = Email accounts user can create
maxlst = Mailing list user can create
maxsub = Total subdomains
bwlimit = Monthly bandwidth
hasshell[y/n] = Enable shell access (y for yes, n for no)
owner = Account owner (reseller’s username e.g root)
plan = Package name (e.g default)
maxpark = Total park domains
maxaddon = total addon domains
featurelist = Feature list for user (e.g default)
contactemail = user’s email address
This will ask for confirmation of the provided details, just press write Y and press Enter
And you’re done!