This issue has been probably caused by the fact that your domain does not resolve to the correct server.
In order to solve this issue you need to log in your cPanel and go to the File Manager. There navigate to the configuration.php file in the public_html directory and edit it. You have to make the following change:
from
$mosConfig_live_site = 'http://mydomain.com';
to
$mosConfig_live_site = 'http://servername.com/~user';
Joomla is a powerful software that is easy to work with once you have the right host to support you. Before you lose any more time with the wrong host, check out the hostlantern Joomla hosting offer.