Mobile app version of vmapp.org
Login or Join
Cugini213

: PHP accessible shared content between two websites on the same VPS on different domains/IPs I have two ecommerce websites, selling music digital downloads, on the same VPS, currently using cPanel/WHM

@Cugini213

Posted in: #Php #Vps

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

I'd build a sub-domain for each site music.domain.com and point each to a single directory containing all the music. You'd have more control that way, without appearing to go to another site for the music.

This does mean that you'd have to have two SSL certs, so it may be cheaper to buy a new domain and do it that way.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme