I have two eCommerce sites currently on two different shared hosting platforms. The sites sell music digital downloads. They both sell the same music. I would like to move them to a VPS, and I would like to make both sites share the same music files directory, maybe via a symbolic link. The sites use a shopping cart script that I don't have much control over. After a customer pays for a digital download, they are provided with download links. These links request a php script that reads the files and issues download headers that cause the browser to download the specified file, so whatever the solution is, I imagine the php script would have to see the files as though they are part of the same directory tree as the rest of the website. How would I go about setting up such a solution?
closed as too localized by EightBitTony, Scott Pack, HopelessN00b, Ladadadada, voretaq7♦ Aug 31 '12 at 18:32
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
If your question is, how do I use symlinks, then if all the files for site 1 are in
and site 2 expects to read files from,
then you simply create a symlink for /another/site2/dir that points to /some/dir/site1 using
However, there's an awful lot about your environment that could have an effect, within the code and the permissions, that we don't know enough about.