Migrate a WordPress Site from 1Panel to WP Panel

Export WordPress site files and database from 1Panel, restore the site in WP Panel, and handle Docker configuration differences, table prefix, domain resolution, and HTTPS.

Migrating a 1Panel website to WP Panel mainly involves:Export website files and database → Create a website in WP Panel → Restore files and database → Automatically detect and sync database information → Test the website.This article describes a standard single-site WordPress setup that continues to use the original domain.

Remember only one thing about the configuration file: when restoring files, remove the oldwp-config.phpfrom the migration package, and keep the one automatically generated when the new website was created in WP Panel. Standard websites do not require manual editing of the configuration file.Menu names may differ slightly across 1Panel versions; refer to the actual interface.

Choose a migration method first

  • Move to another server:Install WP Panel on the new server, restore and verify the site, then switch domain resolution. Keep the old server as a recovery reference.
  • Reinstall the original server with WP Panel:First download all backups to your computer or another server, then reinstall as Debian 13. Reinstallation erases all data on the original server, and the site will experience downtime.

Do not install WP Panel on top of a server running 1Panel.Other applications, containers, and services in 1Panel will not be migrated along with the WordPress files and database. Before reinstalling the original server, arrange separately for the data and recovery of these applications.

WP Panel„s “Site Migration„ is intended for migrations between WP Panel instances. For sites from 1Panel, manually export and import files and databases as described in this article.

Step 1: Confirm where the site files and database are located

WordPress installed from the App Store

Go to 1Panel'sApp Store → Installed, and locate the corresponding WordPress application. Check its database service and database name via „Parameters“ and record them. If there are multiple WordPress applications, match each to its domain one by one to avoid backing up the wrong site.

Files for this type of site are usually mounted in the WordPress container at/var/www/html. Go to theContainerslist, find the corresponding container, and in the details or the entry for viewing the container configuration, check the mount information to find the container's/var/www/htmlcorrespondinghost directory. Enter that host directory and confirm that you can seewp-admin、wp-content、wp-includes 和 wp-config.php。

The application template may write this directory as./data; it is relative to the application installation directory. Do not mistake the OpenResty reverse proxy site directory for the WordPress file directory, and do not select files directly based on paths from other tutorials.

WordPress manually installed in a PHP runtime environment

Go toWebsites → Configuration of the corresponding website → Website Directory, and confirm the actual running directory. Enter the location containing the above WordPress files and directories, then verify the database name inwp-config.php. If WordPress is installed in a subdirectory, the root directory in this article should be understood as the actual WordPress installation directory, and the original subdirectory relationship must be preserved during restoration.

Step 2: Export website files and database

1. Export the complete website files

In 1Panel's file manager, open the host directory confirmed in step one, then package the complete WordPress files and download them locally. The archive should include themes, plugins, uploaded images, and the originalwp-config.phpalso check whether hidden files are included. The archive output location should be outside the website directory being backed up, to avoid packaging the archive itself again or exposing it to the public internet.

If images or other content are stored outside the website directory, in object storage, or in additional mounted directories, back them up separately and record the connection configuration. A full backup of the container, website, or application may be retained additionally, but when restoring to WP Panel, you need to obtain the actual website files and SQL from it; do not treat a full 1Panel backup as a WP Panel backup and restore it directly.

2. Export the corresponding database

Go toDatabase → MySQL, first select the MySQL or MariaDB instance actually used by WordPress, then locate the corresponding database, open „Backup List“, and create a backup. After it succeeds, download the backup to your computer or another server. Files and databases should be named separately by website to avoid confusion.

Check the contents of the downloaded package. When restoring, prepare.sql、.sql.gz, or the.zipfile containing the SQL. If 1Panel downloaded.tar.gzor another outer archive, first extract it locally to find the SQL file; do not just change the file extension. Do not copy MySQL's raw data directory in place of an SQL export.

3. Make a final backup before the actual migration

For sites that are continuously updated, you can first try migrating with a single backup. For the actual cutover, pause the original site's orders, comments, uploads, backend editing, and any scheduled tasks and queues that write data, then re-export the files and database and restore from this final backup. Displaying only a maintenance page may not stop background tasks from writing.

Before reinstalling the original server, you must confirm that the backup has left that server, that the files can be extracted, and that the SQL file can be read.If conditions permit, first complete a restore verification on another server. A single record in the backup list does not prove that the data can still be recovered after reinstallation.

Step 3: Prepare the WP Panel server

The new server should use a clean Debian 13. When reinstalling the original server, after confirming that all backups have been downloaded, followthe instructions for reinstalling as Debian 13to proceed; then followInstallation, Login, and Updatesinstall WP Panel, and completepanel port release。

Step 4: Create a website in WP Panel and restore the files

1. Create a WordPress site using the original domain

Log in to WP Panel and go toSite Management → Create Site, select WordPress, enter the original site domain, and add any domain aliases that need to be used.

If the original server is reinstalled and the public IP remains unchanged, DNS usually does not need to be changed. When migrating to a new server, do not switch public DNS resolution first; you may leave the certificate request unchecked when creating the site, and apply for it later once the domain meets the verification requirements, or manually install a saved valid certificate via the SSL page. For the certificate options shown in the screenshot, choose according to your own migration method.

WP Panel 创建网站表单
Create the site and enter the original domain; choose the certificate options based on your actual DNS and verification conditions.

2. Remove the old wp-config.php from the migration package

After the WordPress website is created, WP Panel has already generated a newwp-config.php, which contains the correct database connection information for the new server.Keep this default file; there is no need to open or modify it.

从 WP Panel 网站列表进入文件管理
Access the file manager for the corresponding site from the site list.

Next, work only with the copy of the website files to be uploaded:

  1. Extract the website file backup downloaded from 1Panel on your computer.
  2. Deletethe oldin the root directory of the extracted copywp-config.php。
  3. Repackage the remaining website files into a ZIP. The top level of the archive should directly showwp-admin、wp-content、wp-includesand other files and directories, and also include any hidden files that need to be retained.

Keep the original complete backup separately; do not delete the configuration file currently in use by the original 1Panel website.What is removed here is the old configuration in the copy used for restoration, so that it does not overwrite the configuration newly generated by WP Panel.

3. Upload, extract, and fix permissions

Upload the migration ZIP to the new website root directory, extract it, and overwrite the corresponding website files. Confirm that the archive does not contain the originalwp-config.php, and the newly generated configuration is still retained. Do not enable file protection during restoration.

在 WP Panel 文件管理中上传迁移用压缩包
Upload and extract the migration package; the migration package in this tutorial already excludes the original wp-config.php.

After extraction, confirm that the homepage file and the three WordPress core directories are in the correct locations, then clickFix Permissions. Do not solve permission issues by setting the entire website to 777.

WP Panel 文件管理的权限修复按钮
Run the permission fix after restoring the files.

Larger archives may exceed the panel's online extraction limit. Follow the interface prompt to use SSH instead, and still verify the directory hierarchy and permissions after completion. For further details on file management, seeFile Management and Databases。

Step 5: Restore the database and sync database information

  1. Go toDatabase Management → Database Details for the corresponding website。
  2. ClickUpload and Restore, select the SQL file or supported compressed file exported from 1Panel, and wait for the restoration to complete.
  3. ClickAuto-detect, detect the database table prefix of the original website.
  4. ClickSynchronize Database Information, and confirm to save.

At this point, the database configuration for a standard website is complete.There is no need to manually enter the database username and password, and it is usually not necessary to click „Change Password“.The new configuration already uses the database username and password created by WP Panel; detection and sync will save the original website's table prefix into it.

Please keep the newwp-config.php。„Sync database information“ modifies existing configuration and will not automatically rebuild it after the file is deleted. If multiple table prefixes are detected, verify against the „Special Cases“ section at the end before syncing.

Upload restore will first clear the selected database. Please confirm that the selected database corresponds to the new website. If it already contains data that must be retained, back it up first. If the restore fails, resolve the error first and do not switch the domain.

After restoration, usethe original website's WordPress admin account and passwordto log in. The original posts, users, and plugin settings will also be restored along with the database.

Step 6: Test the site and switch the domain

First check whether the site has been fully restored

When moving to a new server, you can temporarily point the original domain and any aliases in use to the new server in your computer's hosts file, and still access the site through the original domain during testing. For example, if the new server IP is the example address203.0.113.10, the domain isexample.com, the corresponding record is203.0.113.10 example.com www.example.com; replace all of these with your own values when filling them in.

HTTPS testing requires the new server to have a valid certificate matching the domain. hosts only changes the access target on the local machine; it does not make public certificate validation pass automatically, nor does it change the callback targets of payment platforms or other external services. Do not use the server IP directly as the site domain to judge whether restoration succeeded.

  • The homepage, posts, categories, search, and media images open normally.
  • You can log in to the admin panel with the original site account, and the theme and plugin configurations work normally.
  • Permalinks work normally, and the site does not redirect to the old IP, container port, or temporary address.
  • Forms, SMTP, login verification, and business APIs work normally; tests involving payments or orders use test mode to avoid real charges or duplicate notifications.
  • Check the logs to confirm there are no database connection, PHP extension, or file path errors.

Switch externally only after confirmation

When moving to a new server, after the final backup has been restored and checks are complete, switch the domain's A record and the AAAA record actually in use to the target server; sites using a CDN must also update the origin address. Complete certificate issuance or check the manual certificate according to actual conditions, then test HTTPS.

During the switch, the original site should continue to stop writes to prevent visitors whose DNS cache has not yet updated from submitting orders or comments to the old site. After the new site resumes writes, switching back to the old server requires handling the newly generated data first; you cannot simply change the DNS back. After testing is complete, remove the temporary hosts records on your computer and recheck from a normal public network.

Step 7: Clean up temporary files and configure backups

After confirming the site is working normally, remove the migration ZIP, SQL, and temporary configuration copies from the public website directory, and save reliable backups separately to your computer or a protected backup location. The old server and original backups should be retained until the business is confirmed stable, then cleaned up according to your own retention policy.

Configure database and website file backups in WP Panel, and set up remote backups as needed. Caching, Redis, file protection, and other optimizations can be enabled one by one after migration verification is complete. Check the website after each adjustment to avoid modifying multiple items at once, which makes issues difficult to isolate. ReferenceSite Backups, Remote Sync, and Restoration 和 Websites, Domains, SSL, Cache, and CDN。

Special cases: check these only when custom settings exist

The following situations require separate handling. A standard single-site WordPress installation does not need to go through each item:

  • Multiple table prefixes detected automatically:Verify the prefix actually used by the original site before syncing. If it cannot be determined, stop first. Do not choose arbitrarily, and do not reinstall WordPress.
  • The original site has additional configuration:Object storage, Redis, external scheduled tasks, custom paths, or rewrite rules, etc., require preserving the original configuration and the actual settings in the container parameters, and configuring them separately for the target environment. If the old cache service is no longer available, disable or reconfigure it through the corresponding plugin.
  • HTTPS needs to be tested in advance:Before migration, you can safely save the original site's still-valid certificate and private key, and install them on the new site via the SSL page in WP Panel.
  • The runtime environment has special requirements:Confirm PHP version and extension compatibility. If collation or syntax errors occur during SQL import, resolve the compatibility issues first before switching. Deployments such as WordPress multisite or external databases require separate confirmation of the restore scope.

These settings can be handled with the assistance of maintenance personnel. Before reinstalling the original server, save the relevant information. Do not overwrite the oldwp-config.phpentirely in order to retain special settings.

FAQ

WordPress installation page appears after restoration

Do not reinstall first. This usually requires checking whether the correct database was imported, and$table_prefixwhether it matches the original site's data tables. Return to the database details, verify the data, then re-detect and sync the table prefix.

Database connection failure prompt

First confirm that the database restore succeeded and that thewp-config.phpgenerated when WP Panel created the new website has been retained. If it was accidentally overwritten by the old configuration, first restore the configuration that WP Panel generated for that site, then detect and sync the table prefix. If you are unsure how to restore it, contact support. Do not delete the configuration file on the server and expect „Sync database information“ to rebuild it automatically.

Articles open, but images or some pages are abnormal

Check whether the backup contains the completewp-content/uploads, whether external storage is in use, and whether extraction created an extra directory level. Then check permissions, permalinks, and the original site's custom Nginx rules.

Can the domain be changed at the same time as migration?

It is recommended to complete the migration under the original domain first, then change the domain separately. Modifying onlyhome 和 siteurlmay not replace old links in articles and plugin settings; when WordPress serialized data is involved, use a migration tool that understands this format, and do not perform a full-text replacement directly on SQL.

Reference materials