Hi, I removed the LocalSettings.php to another folder so that eventually, all my websites can share one common Mediawiki software, rather than repeating it for each website.
I put the Mediawiki software in folder "Commonsoftware". How do I change the $IP in LocalSettings so that it points to the folder "Commonsoftware"? I tried $IP = "../Commonsoftware;" but it is not working.
Instead of inventing your own method, you can see how other people have done this:
http://www.mediawiki.org/wiki/Wiki_family
DanB
Thank you Daniel for your prompt reply. Actually I had tried that method before but I guess I didn't quite understand it. I was thinking that changing $IP at LocalSettings.php should work. Even if it fails, it would be a good learning experience.
In any case, I would try the suggested method also. Hopefully, I may understand it this time round. Still I would be glad if anyone can tell me how to reference a different folder at the same level as I may need it occasionally for other purposes.
On Sat, Jan 22, 2011 at 5:16 AM, Daniel Barrett danb@vistaprint.com wrote:
Instead of inventing your own method, you can see how other people have done this:
http://www.mediawiki.org/wiki/Wiki_family
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Ekompute .info wrote:
Thank you Daniel for your prompt reply. Actually I had tried that method before but I guess I didn't quite understand it. I was thinking that changing $IP at LocalSettings.php should work. Even if it fails, it would be a good learning experience.
In any case, I would try the suggested method also. Hopefully, I may understand it this time round. Still I would be glad if anyone can tell me how to reference a different folder at the same level as I may need it occasionally for other purposes.
You don't change $IP in LocalSettings. What you want is mediawiki finding the appropiate LocalSettings (or a common one with cases inside). The web browser must hit index.php, not LocalSettings. You can easily do that by placing symlinks to mediawiki folder. Or alternatively, using an index.php wrapper which chdirs to mediawiki folder and requires index.php
Hi, I still cannot understand the procedure given in http://www.mediawiki.org/wiki/Wiki_family
However, the LocalSettings comments at the top says: # If you customize your file layout, set $IP to the directory that contains # the other MediaWiki files. It will be used as a base to locate files.
So I set $IP = "../commonmediawiki";
where commonmediawiki is the folder that contains all the mediawiki files. However, it is not working. My LocalSettings.php is contained within a folder that is at the same level as the commonmediawiki folder. Using "../" moves the directory pointer one level up before pointing to the commonmediawiki folder. Did I set the $IP correctly?
On Sat, Jan 22, 2011 at 5:50 AM, Ekompute .info ekompute@gmail.com wrote:
Thank you Daniel for your prompt reply. Actually I had tried that method before but I guess I didn't quite understand it. I was thinking that changing $IP at LocalSettings.php should work. Even if it fails, it would be a good learning experience.
In any case, I would try the suggested method also. Hopefully, I may understand it this time round. Still I would be glad if anyone can tell me how to reference a different folder at the same level as I may need it occasionally for other purposes.
On Sat, Jan 22, 2011 at 5:16 AM, Daniel Barrett danb@vistaprint.comwrote:
Instead of inventing your own method, you can see how other people have done this:
http://www.mediawiki.org/wiki/Wiki_family
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- PM Poon
Ekompute .info wrote:
Hi, I still cannot understand the procedure given in http://www.mediawiki.org/wiki/Wiki_family
However, the LocalSettings comments at the top says: # If you customize your file layout, set $IP to the directory that contains # the other MediaWiki files. It will be used as a base to locate files.
So I set $IP = "../commonmediawiki";
where commonmediawiki is the folder that contains all the mediawiki files. However, it is not working. My LocalSettings.php is contained within a folder that is at the same level as the commonmediawiki folder. Using "../" moves the directory pointer one level up before pointing to the commonmediawiki folder. Did I set the $IP correctly?
../ will be relative to the current working dir, which will be by default the folder where the entry point lies. How are you mapping the different websites to the same code?
Hi Platonides, thank you for your response.
I put all my mediawiki files into one folder called "commonmediawiki". I create separate folders for each website where I put the LocalSettings.php and the image folder. These separate folders (for each website), together with the "commonmediawiki" folder are one level below the html folder which is given by my webhost.
How to I interepret the following comment: "If you customize your file layout, set $IP to the directory that contains the other MediaWiki files. It will be used as a base to locate files."
On Sun, Jan 23, 2011 at 11:48 PM, Platonides Platonides@gmail.com wrote:
Ekompute .info wrote:
Hi, I still cannot understand the procedure given in http://www.mediawiki.org/wiki/Wiki_family
However, the LocalSettings comments at the top says: # If you customize your file layout, set $IP to the directory that
contains
# the other MediaWiki files. It will be used as a base to locate files.
So I set $IP = "../commonmediawiki";
where commonmediawiki is the folder that contains all the mediawiki
files.
However, it is not working. My LocalSettings.php is contained within a folder that is at the same level as the commonmediawiki folder. Using
"../"
moves the directory pointer one level up before pointing to the commonmediawiki folder. Did I set the $IP correctly?
../ will be relative to the current working dir, which will be by default the folder where the entry point lies. How are you mapping the different websites to the same code?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Ekompute .info wrote:
Hi Platonides, thank you for your response.
I put all my mediawiki files into one folder called "commonmediawiki". I create separate folders for each website where I put the LocalSettings.php and the image folder. These separate folders (for each website), together with the "commonmediawiki" folder are one level below the html folder which is given by my webhost.
How to I interepret the following comment: "If you customize your file layout, set $IP to the directory that contains the other MediaWiki files. It will be used as a base to locate files."
What file is run when the user goes to www.example.net ? Where is it mapped?
Hi Platonides, it is hard to answer your question without a diagram, so I try to explain it at one of my webpagehttp://computer-stuffs.jbdirectory.com/My_directory_layout. I hope my explanation is what you are seeking to find out. How would I know which file is run when the user goes to www.example.net? Would it be the corresponding LocalSettings.php?
On Mon, Jan 24, 2011 at 12:37 AM, Platonides Platonides@gmail.com wrote:
Ekompute .info wrote:
Hi Platonides, thank you for your response.
I put all my mediawiki files into one folder called "commonmediawiki". I create separate folders for each website where I put the
LocalSettings.php
and the image folder. These separate folders (for each website), together with the "commonmediawiki" folder are one level below the html folder
which
is given by my webhost.
How to I interepret the following comment: "If you customize your file layout, set $IP to the directory that contains the other MediaWiki files.
It
will be used as a base to locate files."
What file is run when the user goes to www.example.net ? Where is it mapped?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi, seems like there are some difficulties, using my proposed method to set up multi-wikis, so I am trying very, very hard to implement Daniel Barrett's idea which avoids trying to reinvent the wheel.
Actually, I have tried that before many years back but I could not understand the procedure. Now that I have acquired a little more knowledge and tried again by really, really putting by best foot forward, I still encounter the same problem. Would appreciate if you can help me find out what's wrong with what I do. Since it is easier to put it in a webpage, together with illustrating diagrams, I have rewrote this pagehttp://computer-stuffs.jbdirectory.com/My_directory_layout.
Thanking all of you in anticipation.... must do it right this time once and for all, LOL. It's being a long-time problem.
On Mon, Jan 24, 2011 at 3:09 PM, Ekompute .info ekompute@gmail.com wrote:
Hi Platonides, it is hard to answer your question without a diagram, so I try to explain it at one of my webpagehttp://computer-stuffs.jbdirectory.com/My_directory_layout. I hope my explanation is what you are seeking to find out. How would I know which file is run when the user goes to www.example.net? Would it be the corresponding LocalSettings.php?
On Mon, Jan 24, 2011 at 12:37 AM, Platonides Platonides@gmail.com wrote:
Ekompute .info wrote:
Hi Platonides, thank you for your response.
I put all my mediawiki files into one folder called "commonmediawiki". I create separate folders for each website where I put the
LocalSettings.php
and the image folder. These separate folders (for each website),
together
with the "commonmediawiki" folder are one level below the html folder
which
is given by my webhost.
How to I interepret the following comment: "If you customize your file layout, set $IP to the directory that contains the other MediaWiki
files. It
will be used as a base to locate files."
What file is run when the user goes to www.example.net ? Where is it mapped?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- PM Poon
Ekompute .info wrote :
Hi, seems like there are some difficulties, using my proposed method to set up multi-wikis, so I am trying very, very hard to implement Daniel Barrett's idea which avoids trying to reinvent the wheel.
Actually, I have tried that before many years back but I could not understand the procedure. Now that I have acquired a little more knowledge and tried again by really, really putting by best foot forward, I still encounter the same problem. Would appreciate if you can help me find out what's wrong with what I do. Since it is easier to put it in a webpage, together with illustrating diagrams, I have rewrote this pagehttp://computer-stuffs.jbdirectory.com/My_directory_layout.
from http://computer-stuffs.jbdirectory.com/My_directory_layout and http://www.mediawiki.org/wiki/Manual:Wiki_family :
If your wikis are in different directories (e.g. yourdomain.com/wiki1, yourdomain.com/wiki2 etc) *linked to the main wiki directory* on your server (say yourdomain.com/w), use this:
how did you "implement" the link of "different directories (...) linked to the main wiki directory" ?
From the error message and your explanations I would think that :
[1] you did not make that link properly [2] you're making some kind of a mix between point 7.1 and 7.2 of "Scenario 2: Quick set-up" (you have separate directories (7.2), but at the same time you use sub-domains (7.1) )
Note that [2] is not a problem, I think it can work, but it's just to be sure of what is it that you're trying to do (AFAIK mixing 7.1 and 7.2 is almost equivalent to 7.1).
As for [1], create a file index.php in your "health" folder with just "<?php echo "hello world"; ?>" and go to http://health.jbdirectory.com/ if you see the "hello world" message, it probably means [1].
Alexis
As for [1], create a file index.php in your "health" folder with just "<?php echo "hello world"; ?>" and go to http://health.jbdirectory.com/ if you see the "hello world" message, it probably means [1].
Alexis
You can just place in such index.php define( 'LOCALSETTINGS', dirname( __FILE__ ) . '/LocalSettings.php' ); chdir('../common mediawiki'); require 'index.php';
And in the LocalSettings at common mediawiki folder: require 'LOCALSETTINGS';
Hi, is it true that multiple Mediawiki websites must share the same database in order to share the same software? I have been combing the internet and this seems to be the case.
On Tue, Jan 25, 2011 at 2:21 PM, Ekompute .info ekompute@gmail.com wrote:
Hi, seems like there are some difficulties, using my proposed method to set up multi-wikis, so I am trying very, very hard to implement Daniel Barrett's idea which avoids trying to reinvent the wheel.
Actually, I have tried that before many years back but I could not understand the procedure. Now that I have acquired a little more knowledge and tried again by really, really putting by best foot forward, I still encounter the same problem. Would appreciate if you can help me find out what's wrong with what I do. Since it is easier to put it in a webpage, together with illustrating diagrams, I have rewrote this pagehttp://computer-stuffs.jbdirectory.com/My_directory_layout.
Thanking all of you in anticipation.... must do it right this time once and for all, LOL. It's being a long-time problem.
On Mon, Jan 24, 2011 at 3:09 PM, Ekompute .info ekompute@gmail.comwrote:
Hi Platonides, it is hard to answer your question without a diagram, so I try to explain it at one of my webpagehttp://computer-stuffs.jbdirectory.com/My_directory_layout. I hope my explanation is what you are seeking to find out. How would I know which file is run when the user goes to www.example.net? Would it be the corresponding LocalSettings.php?
On Mon, Jan 24, 2011 at 12:37 AM, Platonides Platonides@gmail.comwrote:
Ekompute .info wrote:
Hi Platonides, thank you for your response.
I put all my mediawiki files into one folder called "commonmediawiki".
I
create separate folders for each website where I put the
LocalSettings.php
and the image folder. These separate folders (for each website),
together
with the "commonmediawiki" folder are one level below the html folder
which
is given by my webhost.
How to I interepret the following comment: "If you customize your file layout, set $IP to the directory that contains the other MediaWiki
files. It
will be used as a base to locate files."
What file is run when the user goes to www.example.net ? Where is it mapped?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- PM Poon
-- PM Poon
On Mon, Jan 31, 2011 at 1:04 PM, Ekompute .info ekompute@gmail.com wrote:
Hi, is it true that multiple Mediawiki websites must share the same database in order to share the same software? I have been combing the internet and this seems to be the case.
Nope.
Wikimedia's sites for instance use several distinct clusters of database servers, each of which includes master & slave servers for one or more wikis' individual databases.
In that particular configuration, some of those are also shared in that some wikis can slurp information from each other directly (Commons files) or indirectly (CentralAuth's central user database supplements the individual wikis' own user tables), but none of it's required. Most importantly, *NONE* of them are in the same database. Each wiki has its own database. (Actually, I'm not sure the cross-wiki communication stuff works at all if you do put them in the same database with different prefixes.)
-- brion
Hi Brion, thanks for your reply... at least, it still puts hope of me trying to use a single set of software... still struggling, though.
On Tue, Feb 1, 2011 at 6:08 AM, Brion Vibber brion@pobox.com wrote:
On Mon, Jan 31, 2011 at 1:04 PM, Ekompute .info ekompute@gmail.com wrote:
Hi, is it true that multiple Mediawiki websites must share the same database in order to share the same software? I have been combing the internet and this seems to be the case.
Nope.
Wikimedia's sites for instance use several distinct clusters of database servers, each of which includes master & slave servers for one or more wikis' individual databases.
In that particular configuration, some of those are also shared in that some wikis can slurp information from each other directly (Commons files) or indirectly (CentralAuth's central user database supplements the individual wikis' own user tables), but none of it's required. Most importantly, *NONE* of them are in the same database. Each wiki has its own database. (Actually, I'm not sure the cross-wiki communication stuff works at all if you do put them in the same database with different prefixes.)
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Mon, Jan 31, 2011 at 10:29 PM, Ekompute .info ekompute@gmail.com wrote:
Hi Brion, thanks for your reply... at least, it still puts hope of me trying to use a single set of software... still struggling, though.
Yeah, it's not as straightforward or consistent as it should be to set up a multi-site farm; I think we could do better for 1.18 if some folks have time to work on it, but it's something that doesn't usually get a lot of attention outside Wikimedia (where the system's already set up, although it's kinda awkward to work with).
For now it remains a mostly manual affair to set up, and since there's so many slightly different ways to do it you kinda gotta feel it out yourself in your setup for now. :(
-- brion
Hi, I finally manage to link to a single set of MediaWiki software! However, I got the following error:
A database error has occurred Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 Function: LCStore_DB::get Error: 1146 Table 'paranormaldumm.l10n_cache' doesn't exist ( paranormaldumm.db.4707958.hostedresource.com)
I kept the original in a separate folder and when I revert back to it, the website works perfectly and the database is not corrupted at all. Wonder what the problem could be? Assistance deeply appreciated.
On Tue, Feb 1, 2011 at 2:29 PM, Ekompute .info ekompute@gmail.com wrote:
Hi Brion, thanks for your reply... at least, it still puts hope of me trying to use a single set of software... still struggling, though.
On Tue, Feb 1, 2011 at 6:08 AM, Brion Vibber brion@pobox.com wrote:
On Mon, Jan 31, 2011 at 1:04 PM, Ekompute .info ekompute@gmail.com wrote:
Hi, is it true that multiple Mediawiki websites must share the same database in order to share the same software? I have been combing the internet
and
this seems to be the case.
Nope.
Wikimedia's sites for instance use several distinct clusters of database servers, each of which includes master & slave servers for one or more wikis' individual databases.
In that particular configuration, some of those are also shared in that some wikis can slurp information from each other directly (Commons files) or indirectly (CentralAuth's central user database supplements the individual wikis' own user tables), but none of it's required. Most importantly, *NONE* of them are in the same database. Each wiki has its own database. (Actually, I'm not sure the cross-wiki communication stuff works at all if you do put them in the same database with different prefixes.)
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- PM Poon
Hi, I am very sorry for the inconvenience caused... I found the problem. I upgraded to MediaWiki 1.6.1 from MediaWiki 1.4.0 and forgot to redo the setup. It's working perfectly now. Thank you for all the assistance rendered me in setting up a wiki family.
On Tue, Feb 15, 2011 at 12:48 AM, Ekompute .info ekompute@gmail.com wrote:
Hi, I finally manage to link to a single set of MediaWiki software! However, I got the following error:
A database error has occurred Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 Function: LCStore_DB::get Error: 1146 Table 'paranormaldumm.l10n_cache' doesn't exist ( paranormaldumm.db.4707958.hostedresource.com)
I kept the original in a separate folder and when I revert back to it, the website works perfectly and the database is not corrupted at all. Wonder what the problem could be? Assistance deeply appreciated.
On Tue, Feb 1, 2011 at 2:29 PM, Ekompute .info ekompute@gmail.com wrote:
Hi Brion, thanks for your reply... at least, it still puts hope of me trying to use a single set of software... still struggling, though.
On Tue, Feb 1, 2011 at 6:08 AM, Brion Vibber brion@pobox.com wrote:
On Mon, Jan 31, 2011 at 1:04 PM, Ekompute .info ekompute@gmail.com wrote:
Hi, is it true that multiple Mediawiki websites must share the same database in order to share the same software? I have been combing the internet
and
this seems to be the case.
Nope.
Wikimedia's sites for instance use several distinct clusters of database servers, each of which includes master & slave servers for one or more wikis' individual databases.
In that particular configuration, some of those are also shared in that some wikis can slurp information from each other directly (Commons files) or indirectly (CentralAuth's central user database supplements the individual wikis' own user tables), but none of it's required. Most importantly, *NONE* of them are in the same database. Each wiki has its own database. (Actually, I'm not sure the cross-wiki communication stuff works at all if you do put them in the same database with different prefixes.)
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- PM Poon
-- PM Poon
On 21/01/2011 21:16, Daniel Barrett wrote:
Instead of inventing your own method, you can see how other people have done this:
http://www.mediawiki.org/wiki/Wiki_family
DanB
I can see how that would work.... unless you change files and settings outside LocalSettings.php (or not??)
Gordo
mediawiki-l@lists.wikimedia.org