I've gathered that it's possible to run multiple wikis off of one MW installation. Can someone point me to instructions?
On 7/12/06, Sloan, Noah M Noah_Sloan@baylor.edu wrote:
I've gathered that it's possible to run multiple wikis off of one MW installation. Can someone point me to instructions? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
See includes/SiteConfiguration.php. Unfortunately, I don't believe there are good instructions anywhere.
Basically, you have some logic interface with SiteConfiguration from LocalSettings.php. Since the SiteConfiguration class just exports variable values, all you really need is some logic in LocalSettings.php to define the appropriate $wgFoo variables, and you are set. Probably the easiest thing to do is just change the database prefix, wiki name, permissions array, and possibly a few others.
Currently, there is no good gui for automating the process. Although, I've always wanted to write one...
Gregory Szorc gregory.szorc@gmail.com
Hello,
I have just upgraded from 1.6.7 to 1.7.1 and everything works fine except for when I try to save an edit to an article, I get a database error that reads as such: ----- A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "LinksUpdate::getExistingInterlangs". MySQL returned error "1146: Table 'data_base.mx_langlinks' doesn't exist (localhost)". ------ My host server is running PHP 5.0.4 and MySQL 4.1.19-standard-log. I followed the instructions exactly as listed. Since I have no command-line access I had to go through the regular web-based installation and then restore my original LocalSettings.php.
Is there any way I can fix this or should I revert back to 1.6.7?
Thank you,
Sven
--------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
Also, I forgot to mention that the edits do get saved and appear in the recent changes despite the constant error message which I have described that appears after every save, which is very strange.
Metaspheres metaspheres@yahoo.com wrote: Hello,
I have just upgraded from 1.6.7 to 1.7.1 and everything works fine except for when I try to save an edit to an article, I get a database error that reads as such: ----- A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "LinksUpdate::getExistingInterlangs". MySQL returned error "1146: Table 'data_base.mx_langlinks' doesn't exist (localhost)". ------ My host server is running PHP 5.0.4 and MySQL 4.1.19-standard-log. I followed the instructions exactly as listed. Since I have no command-line access I had to go through the regular web-based installation and then restore my original LocalSettings.php.
Is there any way I can fix this or should I revert back to 1.6.7?
Thank you,
Sven
--------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
I just dealt with the exact same thing today. I fixed it by running update.php and refreshLinks.php from the command line. I don't know how you'd fix it without command line access.
On Thu, 13 Jul 2006 20:07:56 -0700 (PDT), Metaspheres metaspheres@yahoo.com wrote in Message-ID 20060714030756.34777.qmail@web38101.mail.mud.yahoo.com:
Hello,
I have just upgraded from 1.6.7 to 1.7.1 and everything works fine except for when I try to save an edit to an article, I get a database error that reads as such:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "LinksUpdate::getExistingInterlangs". MySQL returned error "1146: Table 'data_base.mx_langlinks' doesn't exist (localhost)".
My host server is running PHP 5.0.4 and MySQL 4.1.19-standard-log. I followed the instructions exactly as listed. Since I have no command-line access I had to go through the regular web-based installation and then restore my original LocalSettings.php.
Is there any way I can fix this or should I revert back to 1.6.7?
Thank you,
Sven
I had tried phpshell to run those two scripts (which would be my only recourse without direct shell access), but didn't work unfortunately.
Alec Usticke alec@usticke.org wrote: I just dealt with the exact same thing today. I fixed it by running update.php and refreshLinks.php from the command line. I don't know how you'd fix it without command line access.
--------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
I also had to setup AdminSettings.php to run the scripts. See AdminSettings.sample in root.
On Thu, 13 Jul 2006 21:49:25 -0700 (PDT), Metaspheres metaspheres@yahoo.com wrote in Message-ID 20060714044925.14259.qmail@web38103.mail.mud.yahoo.com:
I had tried phpshell to run those two scripts (which would be my only recourse without direct shell access), but didn't work unfortunately.
Alec Usticke alec@usticke.org wrote: I just dealt with the exact same thing today. I fixed it by running update.php and refreshLinks.php from the command line. I don't know how you'd fix it without command line access.
Yes, I had that all configured but phpshell cannot run the scripts (keeps saying "This script must be run from the command-line"), so I'm assuming my host does not allow any of these functions unfortunately. I'm guessing my only recourse is to go back to 1.6.7.
Alec Usticke alec@usticke.org wrote: I also had to setup AdminSettings.php to run the scripts. See AdminSettings.sample in root.
--------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
Metaspheres wrote:
Yes, I had that all configured but phpshell cannot run the scripts (keeps saying "This script must be run from the command-line"), so I'm assuming my host does not allow any of these functions unfortunately. I'm guessing my only recourse is to go back to 1.6.7.
Why not ask your host to run those scripts for you?
Hínandil
mediawiki-l@lists.wikimedia.org