WebFaction
Community site: login faq

I have several apps installed that have nothing to do with each other. I would like to isolate each of these apps - and their respective websites - from each other in the file structure. That way, if one site gets hit with some malicious code or malware, it is isolated from the rest of my sites, instead of infecting every single site in my account.

How do I accomplish this?

I have attempted to create an SSH user account, then install the app in that account (i.e. Wordpress). I then created a symbolic link to the other folder, but, of course, the main user does not have rights to the other users folder.

Anyone have a solution that works?

Thanks in advance, David

asked 21 Mar '12, 11:01

DaveFlys
111
accept rate: 0%


You can not create a second user and than symlink to a directory within it since you can not symlink outside of your home directory with our shared servers. This limitation is in place for security of the whole file-system, otherwise anyone could symlink to your home directory.

There is no way to isolate your sites from each other and use the shared servers in this way since they all execute as your user.

The only way to isolate them is to build independent Apache stacks for each site executed as secondary users and than create 'custom applications' to have each app's port assigned by the main user. This way the server is executed as the second user and any code it executes is too.

permanent link

answered 21 Mar '12, 17:09

johns
5.4k412
accept rate: 23%

But, if taking a dedicated server, would it be possible to simulate a shared environment creating as many users as the applications to be isolated and create each application into its user account?

(23 Mar '12, 06:21) robertotra

No, the same rule applies at dedicated servers too at the moment. You can only have one primary user per machine.

(23 Mar '12, 06:31) iliasr ♦♦

Thinking a bit on it, I guess I understand the reason for this policy on dedicated server: by managing primary users, an unfair customer could resell your hosting services without your knowing... Prevention is better than cure :)

(25 Mar '12, 16:35) robertotra
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×54
×17

question asked: 21 Mar '12, 11:01

question was seen: 2,651 times

last updated: 25 Mar '12, 16:35

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM