Problems setting up multisite
#1
Posted 14 May 2012 - 02:09 AM
However, my sub site located in site-[domain] throws this error when visiting its domain name (I have changed the http root - just in case):
Error Exception: DB connect error 2005 - Unknown MySQL server host 'Config' (0) ([root]/wire/core/ProcessWire.php line 95)
My error logs show:
? http://www.ray-dale.com/?/ Error Exception: Unknown column 'fieldgroups_fields.data' in 'field list' (in [root]/wire/core/Database.php line 118)
Does anyone have any ideas?
#3
Posted 14 May 2012 - 02:58 AM
Part of the recommended setup process in the instructions I link to involve actually installing the subsite as a normal seperate pw site first under a sub directory. This all worked fine with a separate database and site being setup under the temp directory as per the suggestion.
#4
Posted 14 May 2012 - 03:09 AM
@somartist | modules created | support me, flattr my work flattr.com
#6
Posted 14 May 2012 - 04:14 AM
make sure that you have it like this:
'domain.com' => 'folder-name',the folder name should be something like "site-whatever"
EDIT: I suspect the error log is older than this. Can you check the date?
#7
Posted 14 May 2012 - 04:40 AM
Ah yes, the error log is too old to be relevant. So, that leaves the error exception shown in the browser: Error Exception: DB connect error 2005 - Unknown MySQL server host 'Config' (0) (in /home/raydale/public_html/wire/core/ProcessWire.php line 95)
I have setup 'site-foldername' correctly in the index.config.php file it seems.
I also get 'This error message was shown because Superuser has never logged in. Error has been logged.' underneath the error exception message, but I haven't had any error messages logged. Not sure if this gives any more clues?
#8
Posted 14 May 2012 - 04:58 AM
Still, it does look like the problem must be here. Somehow, the config is not pointing to the correct folder.I have setup 'site-foldername' correctly in the index.config.php file it seems.
but I haven't had any error messages logged
This would be a consequence of the first problem. If PW doesn't know the way to the folder, it can't put any log there.
You said you set up 'site-foldername', that must be the problem. The folder must be called 'site-something', 'site-' must be part of the folder name. Do you have it like this?
EDIT: I even tested removing the "site-" part of the folder and also on the config, and it still works (@Ryan, is there any special reason for requiring this on the instructions? Or is it just for organizational purposes?)
#9
Posted 14 May 2012 - 05:18 AM
'ajs-decorator.co.uk' => 'site-ajsdecorator', 'www.ajs-decorator.co.uk' => 'site-ajsdecorator',
I have a directory setup as: 'site-ajsdecorator'. In this directory is the 'site' directory as required.
I have also double checked that I have the latest v2.2 htaccess file (which I do).
#10
Posted 14 May 2012 - 05:23 AM
I have a directory setup as: 'site-ajsdecorator'. In this directory is the 'site' directory as required.
I've never used this multi site setup, but I think that's wrong. You don't need a "site" folder inside your "site-something" folder.
@somartist | modules created | support me, flattr my work flattr.com
#12
Posted 14 May 2012 - 06:02 AM
Thanks very much for your patience Diogo and Soma! It works now.
I have looked through the instructions again and it does clearly state 'Once installation has completed, move or rename the /tmp/site/ directory to a /site-name/ directory in your main ProcessWire installation'.
Of course being an idiot I scan read the steps and ended up just putting the 'site' folder INTO a 'site-name' directory. I hope this helps anyone else coming across this problem.
Thanks again guys.
#14
Posted 14 May 2012 - 08:52 AM
EDIT: I even tested removing the "site-" part of the folder and also on the config, and it still works (@Ryan, is there any special reason for requiring this on the instructions? Or is it just for organizational purposes?)
I found this earlier testing combinations of directory naming structure in the index.config.php and thought I had messed something else up
#15
Posted 14 May 2012 - 12:25 PM
(@Ryan, is there any special reason for requiring this on the instructions? Or is it just for organizational purposes?)
The "site-" at the beginning is required because the .htaccess file knows to block access to sensitive directories/files below all directories beginning with "site-". So while you could use a different naming structure, you'd have to make a lot of changes to your .htaccess file in order to make it secure.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













