I am running the same php script on multiple domains on an apache2 server, only certain files vary between domains, and the rest Are always the same. Right now, every time I install a new domain, I copy all the files, but I really want to keep these common files in one place so that any change can affect all the domains.
I thought of using a bunch of simunes to point to normal files, whether it is a good approach, or there is some simple editing that I would like to do to file php script or apache configuration and Can make it more efficient?
Thanks
I summarize the common code in the set of 'library' script I suggest that by inserting them into a common directory, modifying PHP's include_path variable means that you are most likely not able to modify your existing scripts, While still removing the need for more than one copy.
This path (and possibly outside your public directories) may be increased by protecting your websites, not directly available to external users.
Comments
Post a Comment