SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2012
    0 Post(s)
    0 Thread(s)

    Share directories/files via Symlinks across two cPanel accounts/domains/IPs on VPS

    I have two ecommerce sites selling music digital downloads. A customer pays, then PHP reads the file and gives them a download (built-in function of pre-existing shopping cart script I don't have much control over). The sites are on the same VPS, but have separate domains/IPs/etc. Both sites sell the same music and so use the same music files, so I have duplicate copies taking up disk space. Is there a way to make them share the same directory containing the music files, maybe via symlinks or something similar? I can only imagine running into all kinds of file ownership errors. I'm new to VPS management and currently have a cPanel/WHM setup, but thinking of switching to Virtualmin.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    19 Post(s)
    3 Thread(s)

    I have a client who maintains a radio program website on one host and hosts the mp3 files on another. The mp3 file links make no difference whether the files are streamed through a Flash player or downloaded directly. In other words, drop one of your link directories and use a redirection (only because you won't then need to change the shopping cart code) in that one to the equivalent directory/file in the other. Simple - and you don't even need to get another host as I did.


    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts