I've recently setup a WHM/cPanel instance on an AWS EC2 instance using the official AMI.
I used the transfer tool to migrate an account from an existing WHM server and everything appears to have made it over to the destination server successfully.
I have updated /etc/hosts on my machine to map the destination server's IP address to the domain name which is still pointed at the old WHM server. This is required to verify that everything works as expected on the destination server before I update live DNS records. All attempts to visit example.com (placeholder) load the ...cgi-sys/defaultwebpage.cgi page.
After lots of searching and suggestions from similar articles, I opted to test the website using another domain name, example2.com - I created an A record mapping example2.com to the destination server's IP address, then proceeded to add example2.com as an Alias under the sole cPanel account, with the document root set to the /public_html but this also redirects to the ...cgi-sys/defaultwebpage.cgi page like above.
I've tried regenerating the httpd.conf file, and confirmed that the WHM has correctly identified my NAT setup. I've executed the /scripts/build_cpnat script and the results shows that the private IP address is mapped to the public IP. Under Basic WebHost Manager Setup, I've repeatedly set the IPv4 address to my private IP but this is automatically updated to reflect the public IP address.
I've checked the /etc/apache2/conf/httpd.conf configuration file and confirmed that the VirtualHost block is being generated correctly with the primary domain and secondary (test domain - example2.com) set as ServerName and ServerAlias variables respectively.
It beats me how cPanel/WHM totally disregards the web server configurations and continues to redirect to the ...cgi-sys/defaultwebpage.cgi page. One answer here suggested deleting the DNS zone if the domain isn't hosted on the destination WHM server, which I've done, all to no avail.
I desperately require some assistance here.
I used the transfer tool to migrate an account from an existing WHM server and everything appears to have made it over to the destination server successfully.
I have updated /etc/hosts on my machine to map the destination server's IP address to the domain name which is still pointed at the old WHM server. This is required to verify that everything works as expected on the destination server before I update live DNS records. All attempts to visit example.com (placeholder) load the ...cgi-sys/defaultwebpage.cgi page.
After lots of searching and suggestions from similar articles, I opted to test the website using another domain name, example2.com - I created an A record mapping example2.com to the destination server's IP address, then proceeded to add example2.com as an Alias under the sole cPanel account, with the document root set to the /public_html but this also redirects to the ...cgi-sys/defaultwebpage.cgi page like above.
I've tried regenerating the httpd.conf file, and confirmed that the WHM has correctly identified my NAT setup. I've executed the /scripts/build_cpnat script and the results shows that the private IP address is mapped to the public IP. Under Basic WebHost Manager Setup, I've repeatedly set the IPv4 address to my private IP but this is automatically updated to reflect the public IP address.
I've checked the /etc/apache2/conf/httpd.conf configuration file and confirmed that the VirtualHost block is being generated correctly with the primary domain and secondary (test domain - example2.com) set as ServerName and ServerAlias variables respectively.
It beats me how cPanel/WHM totally disregards the web server configurations and continues to redirect to the ...cgi-sys/defaultwebpage.cgi page. One answer here suggested deleting the DNS zone if the domain isn't hosted on the destination WHM server, which I've done, all to no avail.
I desperately require some assistance here.