Hi,
Just migrated from one cPanel server to another cPanel server due to a hardware issue. Both Centos 7, new one has cPanel 70 vs. 68 on old server.
Here's the issue (worked fine on old server): I create a new account as a subdomain under my main domain and all skeleton directory files are preloaded perfectly. Account directory looks good on server. I go to a DNS query site and check the DNS of the new subdomain (mynewsite.example.com) and it shows an authoritative answer for the subdomain pointing to the shared IP on my server for that new account.
But if I try to go to the new site in my browser I get the defaultwebpage redirect. I try clearing my browser cache (even though I've never accessed the new subdomain before), and it still redirects. If I try to access a distinct page or script on the new account, I get the default 404 page.
I try over and over, clearing my browser cache between every try and it still redirects. Finally, if I do nothing and wait about 5 minutes, it resolves and loads the site perfectly!
The problem I have is that new sites were accessible immediately on the old server, and I have an automated process that creates my new accounts, and it needs to run some scripts on the new account immediately after creation, but the calls to those scripts return 404 errors, whereas they ran perfectly on the old server. I even have a 30-second delay after account creation before tying to execute the site's scripts but it still fails.
Is there some internal table on the server not being updated quickly enough? I can see that the DNS is fine since I query it immediately and it shows a proper A record, but once the server gets the request, it can't seem to find the site. And then it resolves itself automatically after several minutes.
Any ideas what might be going on?
Thanks!
Just migrated from one cPanel server to another cPanel server due to a hardware issue. Both Centos 7, new one has cPanel 70 vs. 68 on old server.
Here's the issue (worked fine on old server): I create a new account as a subdomain under my main domain and all skeleton directory files are preloaded perfectly. Account directory looks good on server. I go to a DNS query site and check the DNS of the new subdomain (mynewsite.example.com) and it shows an authoritative answer for the subdomain pointing to the shared IP on my server for that new account.
But if I try to go to the new site in my browser I get the defaultwebpage redirect. I try clearing my browser cache (even though I've never accessed the new subdomain before), and it still redirects. If I try to access a distinct page or script on the new account, I get the default 404 page.
I try over and over, clearing my browser cache between every try and it still redirects. Finally, if I do nothing and wait about 5 minutes, it resolves and loads the site perfectly!
The problem I have is that new sites were accessible immediately on the old server, and I have an automated process that creates my new accounts, and it needs to run some scripts on the new account immediately after creation, but the calls to those scripts return 404 errors, whereas they ran perfectly on the old server. I even have a 30-second delay after account creation before tying to execute the site's scripts but it still fails.
Is there some internal table on the server not being updated quickly enough? I can see that the DNS is fine since I query it immediately and it shows a proper A record, but once the server gets the request, it can't seem to find the site. And then it resolves itself automatically after several minutes.
Any ideas what might be going on?
Thanks!