Here is the scenario:
I have a wordpress project which is blog of my main project. Apparently that wordpress project contains a malware which edits js files and modifies the value of href links. Sadly that malware is deployed over the whole root. I mean that malware works on the js files of the main project too.
Now I want to know, how can I make that wordpress project isolated? I want to limit accessibility of that wordpress project to only itself. To avoid publishing that malware (which exists in the wordpress project (which is a part of the main project)) in the whole main project?
I read somewhere, you can make a directory isolated on linux, like a different server. Any idea how can I do that?