I have a few servers that I once in a while have to drop a Wordpress install on where folks need access. Given that more access generally leads to people confused I always set them up in a jail. This usually requires that I pull up my zsh history and run through the song and dance. I could automate it, but it’s one of those tasks that I’d spend more time writing a script then just punching in some quick commands.
- Setup a group that’ll be assigned to users that need a jail in sshd_config. This is one of those things I only do once when I fire up and instance.
- Let’s do some user ops.
- Setup our jailed home directory
- Ditch the shell
- Pull Wordpress and unpack
-
Setup Wordpress with the usual config (wp-config dance, pull plugins, et cetera).
-
Add said new server block to nginx
-
Add user to sshd_config
-
Lock down Wordpress
And so completes a fast and furios Wordpress setup in a jail. User happy, me reasonably happy, on to other coding things.