For Apache, you can use LetsEncrypt to setup a free SSL using the following guide:
Exporting your current MySQL database can be done through phpMyAdmin, Adminer, or from the CLI using
For example, using the CLI you’d use something such as:
mysqldump -u DBUSER -p DBNAME > database.sql
DBUSER = Your Database Username
DBNAME = Your Database Name
When the command above is ran, you’ll be prompted for a password. You’ll use the password that you use for your database. Depending on the size of your database, it’ll take a few seconds to minutes to export to the file.
On the new server, you can restore the database (to an empty database) using:
mysql -u DBUSER -p DBNAME < database.sql
This tutorial will show you how to set up a free TLS/SSL certificate from Let’s Encrypt on a Ubuntu 16.04 server running Apache as web server. TLS certificates are used within web servers to encrypt the traffic between server and client, providing extra security for users accessing your application.