By bp360
I have an old droplet that I neglected to update, but want to move the Wordpress website on it to a new droplet where everything is up to date. What’s the process? If I make a snapshot of the site, will it just include the old PHP/apache files and old Ubuntu or is that not part of the process? I made a backup of the site using Updraft that included the database, plugin files, etc. but Im unsure of how to even get to the point of using it for a new droplet.
If anyone could provide a list of steps it would be helpful. Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hello,
What I could suggest here is using the WordPress 1-Click App on the DigitalOcean Marketplace. It is a great choice for setting up your new environment with Ubuntu 22.04:
The 1-Click App will install WordPress, MySQL, and all the necessary dependencies for you. It will also create a new MySQL database and user for WordPress. You can then migrate your WordPress files and database to the new Droplet.
Create a New Droplet Using WordPress 1-Click App:
Migrate Your WordPress Files:
/var/www/html
directory or wherever WordPress is installed.Importing Your Database:
mysql -u root -p
Then, run the following SQL commands:
CREATE DATABASE new_wp_db;
CREATE USER 'new_wp_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON new_wp_db.* TO 'new_wp_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Note: Replace new_wp_db
, new_wp_user
, and password
with your own values.
wordpress_db_backup.sql
, you can import it with:
mysql -u new_wp_user -p new_wp_db < /path/to/wordpress_db_backup.sql
new_wp_user
, new_wp_db
, and the path to your backup file as necessary.Update WordPress Configuration:
wp-config.php
file to update the database name, user, and password.Testing Your New Site:
Update DNS and SSL Configuration:
sudo certbot --apache -d example.com -d www.example.com
Final Checks and Monitoring:
Let me know if you have any questions!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.