FastPanel: moving a site
In the examples 203.0.113.10 is your server address and my-site.com is your domain. The panel address, login and password are in the VPS activation e-mail.
You can order the move from us for free — contact support. Below is the order if you move it yourself.
1. Prepare the site on the server
- Create a site with the same domain (step 3). Choose the same PHP version as on the old hosting.
- Create a database bound to the site (step 7). Using the same name, user and password as before means the site config needs no changes.
2. Move files and database
- Make a file archive and a database dump on the old hosting.
- Upload the archive in the site File Manager and extract it (step 6).
- Import the dump. A large one — via SSH with
mysql. - If the database name or password are new, put them into the CMS config (
wp-config.php,config.php).
3. Check before the DNS switch
Add the line 203.0.113.10 my-site.com www.my-site.com to the hosts file on your computer and open the site. Check the home page, admin login, cart.
4. Switch the domain and issue a certificate
- Change the A records or NS (step 2).
- As soon as the domain opens from the new server, issue Let's Encrypt (step 5). A site behind Cloudflare shows the FastPanel page until then.
What breaks after moving
- Blank page or 500 — an old site on new PHP. Lower the version to 7.4.
- The site works on and off — not enough memory.
memory_limit512M (PHP settings). - Errors with an old path (
/home/…,/var/www/old_login/…) — cache plugins (advanced-cache.php) and Jetpack keep the old server path. Disable and set up the cache again. - The site Backend error log shows the cause of an error.
- A database user longer than 16 characters is rejected — shorten the name.