As a web developer, I am often tasked with installing and setting up my clients web servers to host the website or application I am building for them. I use Digital Ocean for my own hosting and prefer to use for my clients due to the good pricing and simplicity of use. I think its a great company!
Currently for a new client site running a WordPress site I have to go in and create a new Droplet with pre-installed LAMP server on a 5gb VPS and then install WordPress or for some clients I can use the pre-built droplet that has WordPress but requires a 10gb VPS.
What my end goal is, is to have a droplet image I can use to build a client server that has all this…
I realize I could build a server with all this and then make a copy of it as an image and then use that image when building a new droplet. My issue with this approach is I want to automate it even more by having it where I can enter the domain name for the new project and have that domain name be used to setup the virtual hosts pointing to the WordPress install and also option to enter some default emal addresses on the domain and have them setup by default as well. THis would probably use the DO API in a PHP script where I go to a page and input the domain name and any email addresses to create. Maybe even some usernames and passwords for WP admin.
Im just curious if what I want to do is possibble? IF it is, how difficult would it be?
I have read of people using an image for a droplet but to me it has the problems:
Any help, ideas, inpuit appreciated to point me in the right direction thank you
(keep in mind i’m not a server admin, simply a web developer)
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!
Hey there,
I totally get what you are trying to do and it’s a great idea. Any time you can automate something like this is time well spent!
I’d recommend that you check out our user data functionality when creating Droplets. While that may seem daunting at first, I would say to check out some of our examples in this github repo. Specifically here is one for setting up WordPress on Ubuntu.
You could potentially add onto that the other items you are looking to have preconfigured.
Hopefully this helps :)
Thank you and please let us know if there is anything else we can do for you.
Happy coding,
Jon Schwenn Platform Support Specialist DigitalOcean
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.