PHP accessible shared content between two websites on the same VPS on different domains/IPs

Posted by Lee Fentress on Pro Webmasters See other posts from Pro Webmasters or by Lee Fentress
Published on 2012-05-22T14:42:36Z Indexed on 2012/06/21 21:24 UTC
Read the original article Hit count: 251

Filed under:
|
|

I have two ecommerce websites, selling music digital downloads, on the same VPS, currently using cPanel/WHM (but thinking of switching to Virtualmin). They have separate domains and IPs of course. They both share from the same set of music files, so I have duplicate copies in each website directory, which takes up a lot of disk space. How might I go about sharing the same set of music files across both sites, allowing PHP access, so that it does not break my shopping cart's functionality of serving customers the downloads after they have paid for them? I thought of maybe using symlinks or something, but I don't know if it's possible, or if it would have to somehow circumvent built-in security features of the server. I'm new to VPS management.

© Pro Webmasters or respective owner

Related posts about php

Related posts about websites