After restoring a website from a backup, you must verify that the site is functioning correctly and that all data is intact before you point public traffic to it. This process ensures that the restoration was successful and that the site is ready for public use.
Before you begin
You will need:
Access to the website's files and database (typically via a control panel or FTP).
A local machine with a web browser.
The ability to edit your local
hostsfile or use a private DNS tool.
Verify the site locally before cutover
To verify the site without making it live to the public, you can point your local computer to the Hostek server's IP address. This allows you to test the site on the live server while it is still "hidden" from the public internet.
Identify the IP address of your Hostek server.
On your local computer, open your system's
hostsfile.Windows:
C:\Windows\System32\drivers\etc\hosts(Requires Administrator privileges).macOS/Linux:
/etc/hosts(Requires sudo/root privileges).
Add a line at the bottom of the file mapping your domain to the server IP:
123.456.78.90 example.com(Replace123.456.78.90with your actual server IP andexample.comwith your actual domain.)Save the file.
Open your browser and navigate to your domain.
Verify the content and functionality
Once you have mapped the site locally, perform the following checks:
Check the homepage: Ensure the home page loads correctly and displays the expected content.
Verify internal links: Click several internal links to ensure they resolve to the correct pages.
Test the database: Log in to the website's administrative dashboard (e.g., the WordPress admin area) to ensure you can access the backend and that the database is populated.
Check media and assets: Verify that images, icons, and other media files are loading correctly.
Test forms: Submit a contact form or any other interactive form to ensure the data is being processed.
Confirm the result
The restoration is successful if:
The website loads correctly in your browser using the local
hostsfile.You can successfully log in to the website's administrative dashboard.
All core pages and features function as expected.
If the site does not load or shows errors
If the site fails to load or displays an error during your local check, perform the following steps:
Clear your browser cache: Sometimes your browser may still be trying to load a cached version of the site.
Check the local
hostsfile: Ensure there are no typos in the IP address or the domain name.Verify the database connection: If you see a "Database Connection Error," the restoration may not have updated the configuration files with the correct database credentials.
Check file permissions: Ensure the web server has the correct permissions to read the restored files.
Limitations
Local host file changes: Changes to your local
hostsfile only affect your computer. They do not change the DNS for other users.SSL Certificates: If you are using a Let's Encrypt certificate, it may not validate correctly during a local check if the certificate is not yet issued or if the site is not yet pointed to the correct IP.
Purge Cache: If you use a caching plugin or a server-side cache (like LiteSpeed), you may need to clear the cache after the restoration to see the most recent changes.
