I need complete step-by-step documentation to do what i asked. I’ll be very thankful to the person who will give me the right information.
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!
Greetings!
Thanks for answering my first question there. This isn’t the shortest of processes if you’ve never migrated a website manually before. While I’ll do my best to give step by step, my perspective is of someone who manages servers regularly, and I may overlook something that my mind skips over, something I instinctively assume doesn’t need to be said. I will do my best to provide the steps though.
This may require a support ticket. You just need them to run this on their server:
chsh -s /usr/local/cpanel/bin/jailshell cpanelusername
Your cPanel username and password are the correct credentials for this.
grep "DB_" ~/public_html/wp-config.php
(That may vary if your Wordpress installation is in another folder)
Here’s an example of the details you’re looking for from that output:
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
mysqldump -u username_here -p'password_here' database_name_here > ~/database_name_here.sql
SSH into your new LEMP (Linux, Nginx, MySQL, PHP) droplet.
Create database and user. Using same values from step 3 to change the necessary values:
mysql
create database database_name_here;
grant all on database_name_here to username_here identified by 'password_here';
quit;
cd /var/www/html
rm index.html -f
rsync -avz cpanelusername@gator####.hostgator.com:~/public_html/ .
cd /root
rsync -avz cpanelusername@gator####.hostgator.com:~/database_name_here.sql .
(Change “cpanelusername” and “gator####.hostgator.com” to their appropriate values, as well as the database_name_here value)
mysql database_name_here < /root/database_name_here.sql
chown -R www-data. /var/www
At this point you should be “done.” Every website is unique, especially with the wealth of plugins and configurations out there, so there may be other steps that you have to go through after this. You’ll have to take each problem as it comes and look for it’s solution individually, as one guide cannot reasonably account for all possible variables.
Jarland
Hello there,
We have a series of tutorials that cover the process of migrating from one Linux server to another which you can check here:
https://www.digitalocean.com/community/tutorial_series/how-to-migrate-to-a-new-linux-server
In general, depending on your site/application you will need to spin up a droplet that matches your current hosting provider environment or at least is suitable for your app/site needs (e.g running the same PHP version). Then you need to migrate your data (files, users, database etc).
Another option is to use the All-in-One WP Migration plugin. The plugin can handle the migration process on your behalf.
https://wordpress.org/plugins/all-in-one-wp-migration/
This article also covers the process, although it is outdated:
The final step will be to test everything and make sure it is working fine and then switch the DNS settings and push your site live from DigitalOcean.
Hope that this helps! Regards, Alex
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.