I've been following these instructions http://booleandreams.wordpress.com/2007/06/12/running-multiple-instance-of-m... on how to get two wikis running on one installation.
However when doing as it says and I enter www.mysite.org/firstwiki (mysite changed to correct domain) I end up in a subdirectory of mysite.org not a second (or first) wiki.
Given that the instructions are correct, what might I be doing wrong?
Regards,
Martin S
Bad tutorial... It notes that you /may/ need to change the server configuration files, or DNS, settings... (In real settings, you'll always need to do this), but doesn't give a single clue on how.
I've got half a dozen different ways to run multiple wiki that use varying amounts of the same code. But the usefulness of them will depend on your situation.
What kind of hosting are you on? Primarily, can you change config files for the server? Or can you create symbolic links on the server?
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Martin S wrote:
I've been following these instructions http://booleandreams.wordpress.com/2007/06/12/running-multiple-instance-of-m... on how to get two wikis running on one installation.
However when doing as it says and I enter www.mysite.org/firstwiki (mysite changed to correct domain) I end up in a subdirectory of mysite.org not a second (or first) wiki.
Given that the instructions are correct, what might I be doing wrong?
Regards,
Martin S _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
2007/12/16, DanTMan dan_the_man@telus.net:
Bad tutorial... It notes that you /may/ need to change the server configuration files, or DNS, settings... (In real settings, you'll always need to do this), but doesn't give a single clue on how.
I've got half a dozen different ways to run multiple wiki that use varying amounts of the same code. But the usefulness of them will depend on your situation.
What kind of hosting are you on? Primarily, can you change config files for the server?
Don't think so, I can create my own php.ini file but guess that's not much help here.
Or can you create symbolic links on the server?
I'll have to contact my hosting company to have the answer to this.
Regards,
Martin S
2007/12/16, DanTMan dan_the_man@telus.net:
What kind of hosting are you on? Primarily, can you change config files for the server? Or can you create symbolic links on the server?
I got an answer from my web hotel stating that they are able to create symlinks for my account as long as they know what to do.
Regards,
Martin S
The ultimate minimalist solution consists of symlinks, aaaa.my.org -> mediawiki bbbb.my.org -> mediawiki cccc.my.org -> mediawiki and in mediawiki/LocalSettings.php: $sites=array('aaaa','bbbb','cccc'); foreach ($sites as $v){ if(strpos($_SERVER['SCRIPT_FILENAME'].$_SERVER['PWD'],$v)) {$wgDBname=$v;break;}} $wgLogo="/skins/common/images/$wgDBname.png"; $wgSitename=$wgDBname;
http://www.mediawiki.org/wiki/Manual:Wiki_family#Ultimate_minimalist_solutio...
^_^ I wouldn't call it the ultimate minimalist solution. To me the ultimate solution would be to wildcard all your domains to one set of files, domain grab (Do some proper testing with fallback, the methods used on that page don't look to stable), strip out the .my.org and then use that as the id. From there, you can either just use that as the DB name, id for images folder, sitename, etc... Or you can just do a strait include to something like "./localconfigs/{$wikiId}" and put extra settings there.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
jidanni@jidanni.org wrote:
The ultimate minimalist solution consists of symlinks, aaaa.my.org -> mediawiki bbbb.my.org -> mediawiki cccc.my.org -> mediawiki and in mediawiki/LocalSettings.php: $sites=array('aaaa','bbbb','cccc'); foreach ($sites as $v){ if(strpos($_SERVER['SCRIPT_FILENAME'].$_SERVER['PWD'],$v)) {$wgDBname=$v;break;}} $wgLogo="/skins/common/images/$wgDBname.png"; $wgSitename=$wgDBname;
http://www.mediawiki.org/wiki/Manual:Wiki_family#Ultimate_minimalist_solutio...
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
D> the ultimate solution would be to wildcard all your domains to one D> set of files Then you couldn't do $ cd aaaa/maintenance; php somescript.php #e.g., to upgrade
I recall at one point setting up a set of wiki, where I symlinked the common folders (extensions, includes, languages, maintenance, etc...) to a common area. As I recall, maintenance scripts didn't work right. From what it looked like, the scripts were trying to find a settings folder relative to the common folder. So I have a feeling that any case of symlinking or wild carding would suffer from the same issue.
And there's always the possibility of adding a cli accepted parameter which the settings file accepts as the ID. Then you just pass that parameter and the settings intercepts that and makes the maintenance scripts work.
I've actually got a bit of development on a wiki hosting company through a bit. The setup I have is quite interesting. /mw#_## - is actually where MediaWiki is located. /GlobalSettings.php - holds the global settings (Actually it only does a few base stuff then includes the split files) /configs/globals/*.php - Holds the actual finer Global Settings (I split settings into multiple files grouped together into something like "2-Permissions.php" because settings can get fairly large and disorganized) /configs/locals/*.php - Holds the local settings for a wiki. (However, these are likely going to be special variables which are not used in MediaWiki, but used in the globals to define things further; Using a configuration script to generate these) /configs/versions/* - Holds files with codes like "mw1_11". ((Though, now that I'm using /configs/locals for a different type of variables, I may merge these into there; But that's debatable)) But the primary attraction is this file: /index.php It's actually a special little script. It strips down the domain till it has a identifier for the wiki (Or if it's an external domain it will later search /configs/aliases/domains/ for a file telling what wiki to alias to). And uses that to find the /configs/versions/* to determine what mw#_## to use. Actually, urls in the form "wikiname.mw1_11.hostname.com" also work to. The general idea is that even though every domain is directed to the one set of files, the wiki can potentially run different versions of MediaWiki. And, there is no wait for DNS changes when adding a new wiki under subdomain. But my primary purpose for this is actually for updating. I thought of this method, so that it would be possible for me to update one wiki at at time when I need to do schema updates to the database. Without being forced to db lock a potential 1000+ wiki, to update them all.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
jidanni@jidanni.org wrote:
D> the ultimate solution would be to wildcard all your domains to one D> set of files Then you couldn't do $ cd aaaa/maintenance; php somescript.php #e.g., to upgrade
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org