I am scratching my head trying to decide if symlink is an appropriate way to centralize a php script codebase to mulitple subdomains on my linux/apache host. The goal is to keep every client on the same version of my scripts.
Files unique to each subdomain (config.php, for example) would be hosted in the subdomain while all shared code would be referenced by symlink.
I realize that this means the symbolic link maintenance would be the "new" problem but since the files are fairly static and the code is more dynamic, I am prepared to live with this.
What experience, concerns, suggestions do you have???? Most specifically, I am wondering if anyone has tried this approach and run into php issues. I am conducting small scale testing of the concept but can't believe I am the first person to attempt this ... just not that clever!
The basic idea is laided out like this:
/public_html/phpAppCodeBase/index.php
/public_html/phpAppCodeBase/functions.inc.php
Example layout of subdomain:
/public_html/subdomain1/config.php
/public_html/subdomain1/index.php -> /phpAppCodeBase/index.php
/public_html/subdomain1/functions.inc.php -> /phpAppCodeBase/functions.inc.php
Seems to good to be true for my intention so I'm hoping someone can validate or dismiss it before I hurt myself trying 🙂
P.S. Does anyone know a linux community site on par with the user participation and newbie friendliness of phpbuilder? It might be good to have my plan reviewed there, too. Thanks.