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: [url removed, login to view], [url removed, login to view], 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 [url removed, login to view], 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.