Cloud Service >> Knowledgebase >> cPanel >> Learn to Correct Your Staging Site After a cPanel Merge
submit query

Cut Hosting Costs! Submit Query Today!

Learn to Correct Your Staging Site After a cPanel Merge

Correcting your staging site after a cPanel merge can involve a few steps, depending on what issues have arisen. Here’s a general guide to help you troubleshoot and fix common problems:

1. Backup Your Staging Site

Before making any changes, always ensure you have a backup of your staging site and database.

2. Check File Structure

Verify File Paths: Ensure that your files are in the correct directories. If the merge affected your file structure, you might need to move files back to their original locations.

3. Update Configuration Files

Edit wp-config.php (for WordPress):

If using WordPress, check the wp-config.php file for correct database settings:

  •  

For Other CMS: Similar configurations exist; ensure they point to the correct database and user.

4. Review Database Connection

Check Database User Privileges: Make sure the database user has the correct permissions to access the database.

Test Connection: If possible, create a simple PHP script to test database connectivity.

5. Update URLs

If the site URL has changed:

For WordPress: Use the following SQL query in phpMyAdmin to update URLs:
sql

UPDATE wp_options SET option_value = 'http://new-staging-url.com' WHERE option_name = 'siteurl';

 

UPDATE wp_options SET option_value = 'http://new-staging-url.com' WHERE option_name = 'home';

Adjust the table prefix (wp_) as needed.

6. Clear Caches

If you're using caching plugins or server-side caching, clear all caches to ensure the latest changes are reflected.

7. Check for Broken Links and Missing Files

Use tools like Broken Link Checker or online services to identify broken links or missing resources.

8. Test Functionality

Go through the site’s functionality to ensure everything is working as expected. Check forms, links, and any interactive elements.

9. Error Logs

If you encounter errors, check the error logs in cPanel to identify issues.

10. Consult Documentation

If you’re using a specific CMS or framework, refer to its documentation for additional troubleshooting steps.

11. Revert Changes if Necessary

If all else fails, consider reverting to the backup made before the merge and re-attempting the merge with more careful steps.

 

By following these steps, you should be able to correct issues on your staging site after a cPanel merge. If you run into specific errors or issues, feel free to ask for more targeted advice!

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!