Broxden Posted December 1, 2015 Posted December 1, 2015 Hello I am trying to setup multi sites in accordance with this article - https://processwire.com/api/modules/multi-site-support/ I am using option 1, multiple sites with multiple databases. I have created a new processwire installation at http://broxden.biz/tmp and it works ok. I have created a folder called site-starter1 which is in the root of broxden.biz and I have copied the files from the site folder of my /tmp installation to that folder. I have moved the index.config.php file from the wire folder to the root level and I have edited it as follows: function ProcessWireHostSiteConfig() { return array( /* * Some Examples (you should remove/replace them if used). * Just note that the values must begin with 'site-'. * */ 'startup-juice.co.uk' => 'site-suj', 'starter.broxden.biz' => 'site-starter', 'starter1.broxden.biz' => 'site-starter1', 'foundation6.broxden.biz' => 'site-foundation6', 'guesthouse.broxden.biz' => 'site-guesthouse', /* * Default for all others (typically /site/) * */ '*' => 'site', ); } I have also created a subdomain in cpanel for each of the subdomains listed above pointing to the various sub-folders. When I try to access starter1.broxden.biz, I get the following: --- ForbiddenYou don't have permission to access / on this server. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. --- Have I missed something out? Any suggestions gratefully received. John
Wanze Posted December 1, 2015 Posted December 1, 2015 I have also created a subdomain in cpanel for each of the subdomains listed above pointing to the various sub-folders. Your subdomains should point to the same document root where all the ProcessWire files are in (.htaccess, index.php, site, site-starter1 etc.), not to the site folders 2 1
Broxden Posted December 1, 2015 Author Posted December 1, 2015 Hi Wanze Thank you for taking the time to reply. You are correct and I have it working how. John
Marco Ro Posted September 28, 2018 Posted September 28, 2018 On 12/1/2015 at 11:08 AM, Wanze said: Your subdomains should point to the same document root where all the ProcessWire files are in (.htaccess, index.php, site, site-starter1 etc.), not to the site folders Thank you ? I was two days that I was working on this!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now