Move a website to a new server
Changing hosting provider? With net2ftp you can move the files of a website from the old server to the new one in your browser, without an FTP program and without downloading thousands of single files.
Before you start
- The FTP or SFTP login details of the old and the new server.
- If the site uses a database (WordPress, Joomla, a shop …): export it in the old host’s control panel (for example with phpMyAdmin) and import it at the new host. net2ftp moves files, not databases.
Step by step
- Download the site as one zip. Log in to the old server, open the folder of the website (often
public_html,wwworhtdocs), select everything and click Zip. You get one zip file, whatever the size. - Upload the zip to the new server. Log in to the new server, open the target folder and drag the zip file onto the page. If the upload is interrupted, upload it again: it continues where it stopped.
- Extract it on the server. Select the zip file and choose Extract. Unpacking on the server is much faster than uploading every file separately. Then delete the zip file.
- Set the permissions. Usually
755for folders and644for files: select everything, choose Permissions and tick recursive. Folders the website writes to (uploads, cache) may need more; follow its documentation. - Update the configuration. Open the configuration file in the editor (for example
wp-config.php) and enter the new database name, user and password. Use Search to find the old domain or old paths in all files. - Test, then switch. Check the site at the new host’s temporary address (or with an entry in your computer’s hosts file), and only then point your domain to the new server. Keep the old server for a few days until the change has reached everyone.
Faster with SSH
If the old server offers SFTP with a terminal, you can create the archive on the server itself: open Terminal in the parent folder and run tar -czf site.tar.gz public_html. Then download that one file, upload it to the new server and extract it there.