We plan to host WordPress Blog and an Ecommerce store on the same domain, so the URL's will look like this:
example.com <--- Magento Store
example.com/blog/ <--- WordPress Blog
Our main concern is the security of the e-commerce store. We don't feel safe hosting both CMS in the same document root.
Are there some best practices for how to securely host multiple CMS on the same domain? We have thought about
- moving part of the code outside of the doc root or
- setting different owners (or write) permissions for each CMS folder
So if someone hacks the WordPress blog, they won't be able to access other parts of the website. Thank you