Skip to content

When creating new WHM server from snapshot I receive the "SORRY" page for all sites

0

In order to upgrade to the "latest intel cpus" I am migrating my WHM/Cpanel to a new instance in lightsail. I am following these steps as per AWS recommendation.

Step 1 Create a snapshot of your current instance Navigate to the "Snapshots" tab, create a manual snapshot, and wait for completion. Create manual snapshot Step 2 Create a new instance from the snapshot From your snapshot action menu, click "Create new instance" to create a new instance, choose the equivalent or larger bundle size, and launch the new instance. Step 3 Update your configurations Configure your new instance as needed similar to your old instance and verify all applications are working correctly. Step 4 Delete the old instance Once you've confirmed everything works on your new instance, delete your old instance to stop accruing charges.

After creating the snapshot I detach my static IP from my old instance and reaatch to the new instance. However while I can then access both cpanel and whm dashboards from the expected url (whm.example.com) no other sites are reachable and instead show only the "SORRY" default whm site page. Checking into IP address settings in WHM and cpanel I see no issues. They all point to the same static IP as ever. I am clearly failing somewhere in step 3 but I am at a lose as to how. Do I need to disregard amazons suggestion and give up using snapshots and instead use the transfer tool? I'll admit snapshots have never worked for me in any context but I always hope they will since in theory it would make life much easier. Any suggestions on how to actually spin up WHM from a snapshot? Thanks

asked 2 months ago68 views
2 Answers
0

Hello, when Restoring Cpanel /WHM Server from Lightsail Snapshot , the instance often gets new private internal IP even if same static IP is reattached. WHM and cPanel may still have the old internal IP in their configurations. As a result, Apache’s virtual host mappings don’t match the domains, and all websites fall back to the default WHM page (“SORRY!”), even though WHM itself works. You can rebuild the domain mappings and Apache configuration using cPanel’s built-in maintenance scripts Checkout these Documentations

https://docs.cpanel.net/whm/scripts/the-rebuildhttpdconf-script/

https://support.cpanel.net/hc/en-us/articles/6270151506071-How-to-use-the-updateuserdomains-script

https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-quick-start-guide-cpanel.html

After rebuilding the configuration and restarting Apache, the domains should resolve normally again.

answered 2 months ago
EXPERT
reviewed 2 months ago
0

Hello.

Have you checked the log files in the "/usr/local/cpanel/logs/" directory?
The log files in this directory may provide troubleshooting information.
https://docs.cpanel.net/knowledge-base/cpanel-product/the-cpanel-log-files/

EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.