I have a very big code base which i need to duplicate for law reasons.
the "source website": domain: example.com documentroot /home/mywebs/web1
i need to clone it to: domain: copy.example.com document root: different from /home/mywebs/web1
example.com uses many php skripts, which are using "raw access" to file system - like:
$fp = fopen("/home/mywebs/web1/tmp/users.dat","r");
it makes hard to truely duplicate it.
My idea is to create a "container" in the directory
/container and let it be a virtual root "/"
within this root i create
/home/mywebs/web1 and copy all the data from example.com but the php-scripts file access to "/home/mywebs/web1" need to go to "/container/home/mywebs/web1"
anyidea how to do this?