adam35413
August 15th, 2008, 08:30 PM
I am currently running a website on a Ubuntu 7.10 box. I am interesting in duplicating the code for the first website in a second website. Obviously I could just copy the root directory to a new root directory and setup the Virtual Host for the new site, but that is a nightmare to maintain. My goal is to minimize the duplicate files as much as possible, so I thought about symbolically linking the files. For example, I have one website's root be:
/var/www/abccompany
and I want the new site to be:
/var/www/defcompany
They will have 90% identical code, with probably a dozen or so files different. Is there a more efficient way of setting this up than doing this:
Create the same directory structure of the first site in the root folder for def company.
Link all the files in each of the sub directories of the old site into the correct directory in the new site..
Remove the links for the files that need to change for the new site and create the file in the new site's directory manually.
/var/www/abccompany
and I want the new site to be:
/var/www/defcompany
They will have 90% identical code, with probably a dozen or so files different. Is there a more efficient way of setting this up than doing this:
Create the same directory structure of the first site in the root folder for def company.
Link all the files in each of the sub directories of the old site into the correct directory in the new site..
Remove the links for the files that need to change for the new site and create the file in the new site's directory manually.