Question

Set up a server with WordPress with reset every day

Hi!

I have a little problem here, I have a idea to set up a nostalgi server that will show up WordPress 1.0 to 4.5 with every major installation. And that is 8 different installation of WordPress. But I have no idea where to start, first of all all of the 8 different installation will have a domain name. And it will be totally open, so anyone can log in to the admin section also. So there for i need to reset all data on all of the installation back to basic every 12 hour. Because I know for sure that people will change passwords and so :P

So the main question is, does anyone have a good idea how to set this up here at Digital ocean? I know some how to set up a web server but are far away from a expert.


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

As I read your question I thought about a few ways to implement what you are planning. There are a couple ways to reset every 12 hours including:

  • Restoring the droplet from a snapshot. This is the most fool proof but would need to be kicked off from another computer. With this method, every 12 hours your droplet could be rebuild from your master image with your default configuration (a snapshot made as soon as you completed setup).

  • Restoring the DB and protecting the files. Setting permissions that prevent file uploads would prevent plugin/theme installation and you could restore your database every 12 hours using simple mysql commands.

  • Restoring the DB and files. In this case you would keep a backup copy of your web root for all the sites and a copy of your DB and restore these every 12 hours.

As I was considering these solutions I realized that this unfortunately is not a workable plan for one major reason. Old versions of WordPress are insecure. Your droplet will be compromised, used for abuse and likely shut down by our trust and safety team after a few incidents. Even if all these old versions of WordPress were completely secure the ability to install plugins or alter content could pose abuse issues as a user could effectively take control of your server.

I like this idea and it would be a fun thing to do on a local network to show off the changes, the best way to feature old versions of WordPress would be in screenshots.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

So after some playing with the setup, the first site is up and running. If anyone want to see how it ended up. You can see the site here: wp2.digiword.press

The admin section is currently closed because it’s gonna be released with a blog post.