Hi All, I am trying to build a hard drive to send to schools in India. And I want to mirror enwikitionary.
I use the commands (at the end of the email)
There is something in the sql file that is generated from wikipedia that makes my local copy of enwiktionary redirect back to en.wiktionary.org with a 302 code.
Please help with this, I only have a few days before I send my first beta hard drive out. Note: The other wikis using the exact same scripts and procedure works perfectly.
My enwiktionary is at http://freeknowledge.dyndns.org/enwiktionary/ and if anybody wants to look at my other mirrors of wikipedia, you can find them at http://freeknowledge.dyndns.org/
wget http://download.wikimedia.org/enwiktionary/20061224/enwiktionary-20061224-p ages-articles.xml.bz2
wget http://download.wikimedia.org/enwiktionary/20061224/enwiktionary-20061224-i magelinks.sql.gz
gunzip enwiktionary-20061224-imagelinks.sql.gz bunzip2 -k enwiktionary-20061224-pages-articles.xml.bz2 java -server -jar ../mwdumper.jar --format=sql:1.5 enwiktionary-20061224-pages-a rticles.xml > enwiktionary-20061224-pages-articles.sql 2> enwiktionary-20061224- pages-articles.err
mysql -u root -p'whatever' enwiktionary < enwiktionary-20061224-pages-articles.sql
===================================== Misinterpreting Copyright by Richard Stallman http://www.gnu.org/philosophy/misinterpreting-copyright.html "Die Gedanken Sind Frei": Free Software and the Struggle for Free Thought by Eben Moglen http://emoglen.law.columbia.edu/publications/berlin-keynote.html
.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Krishna Pagadala wrote:
Hi All, I am trying to build a hard drive to send to schools in India. And I want to mirror enwikitionary.
I use the commands (at the end of the email)
There is something in the sql file that is generated from wikipedia that makes my local copy of enwiktionary redirect back to en.wiktionary.org with a 302 code.
1) The main page is defined as 'Wiktionary:Main Page' 2) You do not have a 'Wiktionary' namespace defined locally 3) You have interwiki redirects enabled 4) You have a 'Wiktionary' interwiki set, pointing at en.wiktionary.org
As a result: 1) Going straight in sends you to [[Wiktionary:Main Page]] 2) that's not a local page 3) it's a remote page on en.wiktionary.org 4) your wiki is configured to send you over there via a redirect
References: http://freeknowledge.dyndns.org/enwiktionary/index.php/MediaWiki:Mainpage
An XML export which includes the namespace list, showing 'entionary' in the project namespace slot (namespace 4): http://freeknowledge.dyndns.org/enwiktionary/index.php/Special:Export/foo
For best compatibility, change the local project namespace or all links into it will fail. For a quick fix, edit [[MediaWiki:Mainpage]] to point to the localized form of the title.
- -- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org