repartition

I recently recovered from a multi-site WordPress attack. I want to move to /siteA, /siteB, siteC from the current /var/www structure.

I'm thinking of adding object storage, copying /sda to that storage & repartitioning , reinstalling Debian on /sda, and moving the various sites in /var/www to their own partitions to eliminate a common root. The rest of the stuff in /var, /etc can remain where they are.

The issue is that I'm only using 15% free space on /dev/sda. It's not worth paying more to Linode for object storage when 70% free space on that disk.

I realize that partitions aren't easily reproducible, but I'll only need 4 or 5 on a 4 gig machine.

Comments? Brickbats?

2 Replies

I'm thinking of adding object storage, copying /sda to that storage & repartitioning

Object storage is NOT AT ALL like /dev/sda! If you didn't mean block storage here, you are in for pretty rude awakening. If you did mean block storage, you have to be aware that block storage can be significantly slower than the SSD storage that is used for the discs on your Linode (/dev/sda, etc).

reinstalling Debian on /sda, and moving the various sites in /var/www to their own partitions to eliminate a common root

You're creating a whole lotta work™ for yourself. You can move your sites to different directories in your filesystem just by moving your files to the locations you want and re-configuring your web server. You don't need to "re-partition" anything…

As always, backups are your friend…

-- sw

P.S. There's nothing wrong with a common root directory for your website files. The association between URL ( http://mylinode.com/path/mysite ) and filesystem directory (/could/be/a/different/path/to/my/site) is made in the web server configuration. Unless you tell the web server to give that association out, there's no way a browser can discover it.

Steve gave you good advice.

I think you would be well-advised to try to find out where the vulnerability is/was in your sites and spend some time hardening them.

Were you running Wordfence (plugin) at the time? (I hope you are running it now.)

How about the WP Hide Login plugin?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct