We have a project in Kohana, which we want to share source code for various clients via symlinks.
Each client must access their application in different subdomain, example: client1.mysite.com, client2.mysite.com, client3.mysite.com.
We need a PHP script that creates the client application in a subdirectory predefined. This script have to create, in this subdirectory, symlinks to the directories application/modules/system and to index.php, and a file .conf witch setup subdomain in apache, then the script have to create a symbolic link to this "conf" in apache directory, where apache can recognize that this new subdomain. After work, the script must apply the changes in order to work.