Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 21, 2012, 04:00:49 AM

Pages: [1]   Go Down
  Print  
Author Topic: Sharing data between different domains  (Read 943 times)
pokejabba
Space Explorer
***
Offline Offline

Posts: 6


« on: March 30, 2006, 05:14:11 AM »

I am not currently a customer but am eager to become one after reading all the good, honest comments on this board.  I will be setting up alot of low-bandwidth domains (anywhere from 5 to 500), each using the Open Realty php script.  I don't anticipate having that many domains causing problems because these are individual realtors' websites, and access to each of them will most likely be limited to 20 hits or less a day.

With that said, a quick question.  Is there any way to share local files between all domains?  Open Realty uses templates from a subdirectory of the script's root, and I'd like to be able to share templates I've created across all of my domains.  That way, I can keep each site updated with the newest templates and save disk space.

I've heard of symbolic linking, but don't know much about it aside from it's wikipedia page. Would it be possible to use linking to achieve this?  What are the steps necessary?

Also, could I simply link all Open Realty source files on each domain to a central folder on the server (except of course the common.php include which contains SQL connect variables for each individual server)?  This would make updating sites very easy, I would think.

The biggest problem I've encountered thus far is when a file is linked (ln -s /var/www/html/index.php /var/www/html/linked.php), the linked.php file is not accessible via http (http://www.myserver.com/linked.php).  I know it has something to do with ownership and Apache's link settings (specifically FollowSymLinks and SymLinksIfOwnerMatch), but I don't know how to correct the problem.

Thanks in advance for any help you can give.  I hope to be a dedicated hosting customer very soon.
« Last Edit: March 30, 2006, 05:53:04 AM by pokejabba » Logged
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #1 on: March 30, 2006, 09:05:37 PM »

If you go with the dedicated hosting plan, I think you could setup a shared folder on the server where the templates could be accessed by all the various customer accounts, without needing to do symlinks. Basically, it would just be a folder that was available to any account on the system.... dedicated@lunarpages.com should be able to tell you more if they haven't already...

(if you were going with shared hosting, then it would be a bigger problem because of the other users on the system... but with dedicated you have a bit more freedom and flexibility...)
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
RAT
Wizard of Telecastria
Über Jedi
*****
Offline Offline

Posts: 2875


HAIRNT !


WWW
« Reply #2 on: March 30, 2006, 09:12:08 PM »

Welcome to Lunarforums pokejabba and hopefully soon to LP. This is the best place to be !   Thumbs Up (speaking from three years of excelent experiences here)

RAT
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: