I am trying to set up a single magento backend installation on a vps that will host multiple stores on multiple domains. my VPS has Cpanel WHM and Cpanel for the accounts. Because I will need seperate ssl certificates for each domain this will involve multiple Cpanel accounts (parked and add-on domains won't allow for the multiple ssl certifcates to be installed)
I first tried to solve this with symbolic links but when the site was accessed from the second domain I don't think it had privileges to the php in the main account, or the sql database.
maindomain.com <- magento is installed here, cpanel user is maindomain
domaintwo.com <- second domain, cpanel user is domaintwo
I think I have this solved by editing the vhost file for the second domain from this
---
customlog:
-
format: combined
target: /usr/local/apache/domlogs/domaintwo.com
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/domaintwo.com-bytes_log
documentroot: /home/domaintwo/public_html
group: domaintwo
hascgi: 1
homedir: /home/domaintwo
ip: xxx.xxx.xxx.218
options: ExecCGI Includes
owner: root
phpopenbasedirprotect: 1
port: 80
scriptalias:
-
path: /home/domaintwo/public_html/cgi-bin
url: /cgi-bin/
serveradmin: [email]webmaster@domaintwo.com[/email]
serveralias: [url]www.domaintwo.com[/url]
servername: domaintwo.com
usecanonicalname: 'Off'
user: domaintwo
to this
---
customlog:
-
format: combined
target: /usr/local/apache/domlogs/domaintwo.com
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/domaintwo.com-bytes_log
documentroot: /home/[COLOR="Lime"]maindomain[/COLOR]/public_html
group: [COLOR="Lime"]maindomain[/COLOR]
hascgi: 1
homedir: /home/domaintwo
ip: xxx.xxx.xxx.218
options: ExecCGI Includes
owner: root
phpopenbasedirprotect: [COLOR="Lime"]0[/COLOR]
port: 80
scriptalias:
-
path: /home/[COLOR="Lime"]maindomain[/COLOR]/public_html/cgi-bin
url: /cgi-bin/
serveradmin: [email]webmaster@domaintwo.com[/email]
serveralias: [url]www.domaintwo.com[/url]
servername: domaintwo.com
usecanonicalname: 'Off'
user: [COLOR="Lime"]maindomain[/COLOR]
is there anything I need to be concerned about going this route? Since it is on a VPS that only I am using, security shouldn't be an issue?