Topic on User talk:MusikAnimal

Xtools installation question

6
IkonAlex (talkcontribs)

Hi,

Excuse me if the question seems silly, non-programmer having my first time to work with php and wikimedia, I've read Readthedocs 5+ times, I still didn't get how to run xtools after the installation. In phabricator guide there's a phrase "Run in web server". Could you please elaborate a little?

So far I installed the full list mentioned in Installation section of Readthedocs and after the step "composer install" I've set configuration options prompted.

I haven't created the XTools database (next step) yet but I'd like to test that everything before is set up fine and actually run xtools to make sure that previous steps are correct.

If there's a need for logs, comments, etc. please let me know.

MusikAnimal (talkcontribs)

Hello and welcome! I am thrilled to hear you have interest in contributing to XTools :) The "Installation" docs are more geared toward other communities installing a production XTools instance. As a contributor, you may find the "Development" guide to be more helpful: https://xtools.readthedocs.io/en/stable/development.html. Specifically, the server can be started with ./bin/console server:start.

Now, I should warn you -- despite what the docs say, as a brand new contributor to Wikimedia you probably won't be granted access to Toolforge, and hence access to the production replicas. That's okay though; Instead, I would install a local MediaWiki installation and have XTools connect to that. You can refer to Manual:Installation guide on how to install a local copy of MediaWiki.

There are a lot of other complexities with XTools, so you will probably run into other issues. Please don't hesitate to ping me if you need more help :)

IkonAlex (talkcontribs)

Thank you very much for your thorought response. Indeed, I could install a local instance of mediawiki, although encountered a problem regarding cache.adapter .

Following the instructions on readthedocs, I've set cache.adapter to "file_system". However I get the same error (shown in the details below the message) every time I try to interact with XTools. Unfortunately, the Link to the doctrinebundle provided in the readthedocs is not working anymore. Although it is available in the wayback machine, the instructions don't clarify what is needed to be done next.

May I ask for your help with the problem?


The error:

C:\Apache24\htdocs\xtool>php bin/console server:run

In ContainerBuilder.php line 1011:

  You have requested a non-existent service "cache.adapter.file_system".

MusikAnimal (talkcontribs)

Hmm interesting. File system should just work.. no need to install anything extra. You sure the entry in parameters.yml looks like cache.adapter: filesystem? The error suggests you might have it set to something like cache.adapter.filesystem: 1

MusikAnimal (talkcontribs)

I should also mention XTools hasn't undergone significant testing in a Windows environment. It's possible we're doing something that is incompatible with Windows. I would be surprised if the filesystem caching were a problem, though.

IkonAlex (talkcontribs)

Unfortunately, the parameters.yml has this line "cache.adapter: file_system" and nothing seems to be incorrect.

Thank you for clarification about Windows.

I'll run some instance of Ubuntu and I'll try again. Actually, now I start to understand why I was getting some wild errors on the previous build (3.6.11), I won't dig into it, but it seems that a better choice is just to move to linux and forget about it.

Reply to "Xtools installation question"