Topic on Extension talk:SyntaxHighlight

Using composer to install after run Mediawiki Wizard

1
Krauss (talkcontribs)

There are a reported bug in the Mediawiki Wizard, so, it is a workaround.

  1. Solicitate SyntaxHighlight with the Online Mediawiki Wizard, and install it (the "bug install");
  2. Test to edit source code using the Wiki (edit some source tag)
  3. If not running:
    1. With SSH, at the Mediawiki folder, run again the Composer by the command php composer.phar update --no-dev.
    2. Check that is executable, ls -l /path/to/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize (will return for example -rwxr-xr-x).
      It this the most important after all install... Do chmod a+x path when necessary.
    3. Try again
    4. .... other checks

That the item 3.1, if try again, the messages will be:

> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies
Generating optimized autoload files
> ComposerVendorHtaccessCreator::onEvent

If there are some permission errors or a kind of "Composer: file_put_contents(./composer.json): failed to open stream", etc. Try:

  • sudo chown -R $USER yourHtmlMediawikiFolder/
  • sudo chown -R $USER ~/.composer/

and, after it, run composer again (item 3.1). You your user is a problem, after run composer put back www-data:

sudo chown -R www-data yourHtmlMediawikiFolder/.
Reply to "Using composer to install after run Mediawiki Wizard"