Jump to content

Topic on Project:Support desk/Flow

How to make a local copy of a WMF site for testing

41
Ilovemydoodle2 (talkcontribs)

How would I go about creating a local clone of en.wq to test proposed changes to the code of the actual site? – Ilovemydoodle2 (talk) 03:58, 22 July 2022 (UTC)

This post was hidden by Ilovemydoodle2 (history)
This post was hidden by Ilovemydoodle2 (history)
Malyacko (talkcontribs)

Manual:FAQ#Wiki importing (Please use specific topics which summarize the question, otherwise every post here will be called "Question".)

Ilovemydoodle2 (talkcontribs)

@Malyacko: Not just importing, cloning everything (e.g. configuration, extensions, etc.). – Ilovemydoodle2 (talk) 07:14, 22 July 2022 (UTC)

Malyacko (talkcontribs)

I don't think that easily possible. Maybe you want to explain the underlying problem to solve - see https://xyproblem.info/

Ilovemydoodle2 (talkcontribs)

I wanted to test out some feature additions. – Ilovemydoodle2 (talk) 08:53, 22 July 2022 (UTC)

Malyacko (talkcontribs)

You could locally install MediaWiki and test them.

Ilovemydoodle2 (talkcontribs)

@Malyacko: But how do I set up the configuration and install all the correct extensions? – Ilovemydoodle2 (talk) 09:41, 22 July 2022 (UTC)

Malyacko (talkcontribs)

Entirely depends on the "feature additions" that you have in mind. For general info on how to install or configure stuff, see the links on the MediaWiki page.

Bawolff (talkcontribs)

Its really hard to make an exact clone of wikiquote's setup. It is usually easier just to set up what you want to test.

That said all configs are in the mediawiki-config git repo.

Ilovemydoodle2 (talkcontribs)
Malyacko (talkcontribs)

Because there's lots of local stuff (templates, modules, etc).

Ilovemydoodle2 (talkcontribs)

What if I import a dump? Also, could you please send a link to a guide on how to do this? – Ilovemydoodle2 (talk) 06:59, 26 July 2022 (UTC)

Malyacko (talkcontribs)
Ilovemydoodle2 (talkcontribs)

@Malyacko: I don’t think you understand what I want. Let me clarify:

I want to be able to make an exact clone of en.wq on my local computer, so I can test modifications to the php code.

Ilovemydoodle2 (talk) 09:28, 26 July 2022 (UTC)

Malyacko (talkcontribs)

I understand that. Bawolff answered that earlier in this thread, above. You'll have to import content, set up many extensions, and fiddle with settings.

Bawolff (talkcontribs)

You can do it if you want to, however, there is no step by step guide, so you should be comfortable with experimenting.

  • Wikiquote is using a lot of customizations. You will have to copy all the customizations. There are a lot of them, and some of them can be difficult to understand how to copy at first glance.
  • Wikiquote is medium sized. That means if you make a mistake and have to start over, it can take a while to do steps because it has a lot of pages. Its not anywhere near as bad as wikipedia is for this, but if you're just learning, you might want to start smaller.


Anyways:

Its entirely possible to do what you want to do with some effort, but it will be some effort.

Ilovemydoodle2 (talkcontribs)

Also, where do I find a dump of en.wq with full page history and deleted pages? – Ilovemydoodle2 (talk) 21:03, 26 July 2022 (UTC)

Malyacko (talkcontribs)
Ilovemydoodle2 (talkcontribs)

I looked there, but I only saw current pages for en.wq, not full revhists. – Ilovemydoodle2 (talk) 19:41, 27 July 2022 (UTC)

Ilovemydoodle2 (talkcontribs)

Thanks for the advice. But I have never done anything like this before, so I don't even know where to start (other than downloading mediawiki). Do you think you could give any information on where to start and which pages I could read here? Thanks. – Ilovemydoodle2 (talk) 20:52, 26 July 2022 (UTC)

Malyacko (talkcontribs)
Ilovemydoodle2 (talkcontribs)

I mean installing and configuring, not importing. Thanks. – Ilovemydoodle2 (talk) 22:09, 26 July 2022 (UTC)

Ilovemydoodle2 (talkcontribs)
Malyacko (talkcontribs)

Please don't ping me

Ilovemydoodle2 (talkcontribs)

Do the WMF servers use the latest version of MediaWiki? – Ilovemydoodle2 (talk) 20:22, 27 July 2022 (UTC)

Malyacko (talkcontribs)
Ilovemydoodle2 (talkcontribs)
Ilovemydoodle2 (talkcontribs)

Where can I find full dumps (all revisions*) of en.wq?

Edit: nevermind found them, but what is the difference between enwikiquote-20220701-pages-meta-history.xml.7z (1.1 GB) and enwikiquote-20220701-pages-meta-history.xml.bz2 (11.5 GB)? – Ilovemydoodle2 (talk) 21:10, 28 July 2022 (UTC)

Malyacko (talkcontribs)

The file format: 7z vs bz2.

Ilovemydoodle2 (talkcontribs)

@Malyacko: So they are the same file format? And if so, why is the difference over ten-fold? – Ilovemydoodle2 (talk) 07:39, 29 July 2022 (UTC)

Malyacko (talkcontribs)

Again: Please don't ping me

Ilovemydoodle2 (talkcontribs)

Understood, I won't ping you. But, what is reason for disliking pinging? – Ilovemydoodle2 (talk) 08:18, 29 July 2022 (UTC)

Malyacko (talkcontribs)
Ilovemydoodle2 (talkcontribs)

According to that, 7z appears to be far more efficient for storing these dumps. So, why don't all dumps use 7z rather than bz2? – Ilovemydoodle2 (talk) 08:20, 29 July 2022 (UTC)

Ilovemydoodle2 (talkcontribs)

Also, how would I go about importing several wikis for cross-wiki (global) testing? – Ilovemydoodle2 (talk) 07:40, 29 July 2022 (UTC)

Malyacko (talkcontribs)

Not relevant at this stage. Start small.

Ilovemydoodle2 (talkcontribs)

The test I need to do requires testing a global right. – Ilovemydoodle2 (talk) 08:16, 29 July 2022 (UTC)

Reply to "How to make a local copy of a WMF site for testing"