Migrations from cPanel-based servers are usually seamless. But sometimes, a few issues might occur, mostly configuration-related, due to the difference in server configuration between your old hosting provider and us. Fixing them is relatively easy.
If you are not getting the expected performance or are having any issues after migration, apply these solutions one at a time. Check your website after applying each solution.
Make sure to clear your browser cache before checking. Sometimes, websites can be cached in public caches or outside of your device. You can use a web proxy or free VPN to bypass those caches.
Check Your Website
After migrating a website, you need to do the following to access the site from our server:
- Change the nameservers of your domain.
Or, change the DNS records so the domain resolves to our servers. - Install an SSL Certificate.
While the DNS is propagating, you can check the website using a free VPN or web proxy:
Web Proxy: https://hide.me/en/proxy
You can also view your website without changing the nameservers or DNS.
It is vital to access your website using its actual URL, not the temporary URL. Due to the difference in the URL, your website may appear broken when accessed using a temporary URL.
Check PHP Version
Check if you are using the correct PHP version and extensions:
- Go to cPanel > Select PHP Version.
If you used a different PHP version on the old server, change the PHP version.
You can enable/disable PHP extensions from the same interface. - If the PHP version is correct, reset the PHP extensions to default from cPanel > Select PHP Version > Reset to Default.
Disable Incorrect PHP Handler
One common error is using an incorrect PHP handler in the [.htaccess] and [.user.ini] files.
Disable incorrect PHP handler and check your website.
Correct Plugin File Path in .Htaccess
Some security and caching plugins insert their file paths in the .htaccess file. If your old hosting server uses a directory structure different from ours, this might cause an error.
NinjaFirewall and Wordfence WAF embed file paths in the .htaccess
and .user.ini
files.
- Go to cPanel > File Manager > Navigate to the [public_html] directory.
If you do not see the [.htaccess] file, click "Settings" (top right corner) and checkmark "Show Hidden Files (dotfiles)". - Right-click on
.htaccess
> Edit. - Find the following code blocks:
php_value auto_prepend_file "/home/customer/www/yourdomain.com/public_html/wp-content/nfwlog/ninjafirewall.php"
Andphp_value auto_prepend_file '/home/customer/www/yourdomain.com/public_html/wordfence-waf.php'
Note:
The actual file path in your file might be different.
You might have double quotes instead of single quotes.
You might only have a single code block and not both.
*Move on to the next solution if your file does not have the code block. - Correct the file path.
Replace the following part:/home/customer/www/yourdomain.com/public_html
/ninjafirewall.php
With:/home/yourcpanelusername/public_html
/ninjafirewall.php
*Replaceyourcpanelusername
with the actual username of your hosting account with us.
Hint:
Go to cPanel > Domains and hover your mouse over the home icon (under Document Root) next to your domain name to view the correct path.
If you have multiple domains/subdomains in your hosting account, your actual path might differ from the above. - Repeat the above steps for the
.user.ini
file.
*Your website might not have a [.user.ini] file. Not all websites have it. - Done!
Reset .Htaccess File
The configuration files store PHP and website configuration. If your old hosting server uses a different configuration than our server, this difference can trigger errors on your website.
Reset the .htaccess file and check if it solves the error.
Move on to the next solution if the login page displays an error.
Check Basic Configuration
- If you are using any CDN, purge the CDN cache.
If the server IP is tied to the CDN, you might need to update the server IP in your CDN settings. You can view your server shared IP on the right sidebar of your cPanel. - If you are using additional features from a CDN, it might take some time for the CDN to complete a resync.
- Disable Object Cache.
If you are using an object cache like Redis or Memcached, disable it.
You might need to purge the cache directory after disabling the object cache. - If you are using any security plugins such as a firewall, anti-malware, etc., disable them.
- Disable Caching Plugins.
- Purge LiteSpeed Cache.
The steps above should fix some common errors you might get after a migration. Sometimes, some files get corrupted during the migration, in which case you might need to migrate the site again.