Home Miscellaneous Error “Sorry, your domain must not begin with a digit”

Error “Sorry, your domain must not begin with a digit”

by SupportPRO Admin

This is a CPanel bug that prevents users from adding domains that begin with a digit, the users will get this javascript alert:
Sorry, your domain must not begin with a digit.
This can be fixed via ssh, and do this carefully:
vi  /usr/local/cpanel/base/frontend/x/addon/index.html
The text you need should be around line 68 :
var pattern = /(^[.]|[.]$)/;
if (domainname.match(pattern) != null) {
alert(Sorry, your domain name must not begin with a digit.);
return false;
}
You should then comment that line out !

From now, CPanel should now work fine with domains that begin with a digit. 🙂

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Comment