By gratiano
hi to all. I have got a wordpress nginx ubuntu 14 droplet which has 4 subdomains. 2 of them are operational. i need to copy my main site’s data to one of my subfolder to make the other subdomain operational too. i tried to do that getting data from root directory and use import from wordpress dashboard but it crashes my website. i tried a migration plugin in wordpress it is no good either. i dont know the way for it. can you please help? 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!
Hello,
As all of the domains are on the same server, you need to create separate Nginx server blocks for each sub domain. You can follow the steps on how to do that here:
After that you need to make sure that you create a separate database and database user for each website.
Once you have these two things, you can move the data of your website as you described in your post. Even a migration plugin should work in this case.
Hope that this helps! Regards, 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.