By colbyalbo
I have a service that sells fully built WordPress websites to my customers. When they subscribe to my service, I manually clone a copy of a complete wordpress install and database to a server , then send them the credentials to login and manage the site. Right now, because this is a manual process, there is a delay in them getting access to their website. What would like to do is have the process automated, so that as soon as they subscribe to the service , an automation is initiated that creates a server, installs a clone of a wordpress install with the database, assigns a subdomain, and created the SSL. This way they get almost immediate access to their site.
I’d just like to know if this setup is possible or feasible with digital ocean
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!
Hi @colbyalbo,
Yes, this is possible however there are multiple components which you’ll need to take in account.
Let’s start from the beginning
Since you are here, I assume you’ll be creating a droplet per client, is that correct? Digital Ocean offers API which lets you create droplets remotely. To find out more, you’ll have to read the DOCUMENTATION
Let’s say that was the first step, creation of a droplet.
The second step would be to copy a complete wordpress installation and database to a server. Both can be automated with an automation engine like Ansible for example. Digital Ocean have some great tutorials on that as well - Ansible Cheat Sheet and Automation of Ubunt 18.04 -Ansible.
Going to the third step, you can create a script to install an SSL as well.You can use all kinds of languages from python,perl,php to even bash.
All in all, everything is possible if you have the time. This idea of yours is pretty great but it will take some time to write everything up. Then again, it will help you out in the future.
Good Luck!
Kind regards, KDSys
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.