Embed Maps: Difference between revisions

From WikiMLT
Line 8: Line 8:


=== Installation ===
=== Installation ===
If you are using MediaWiki 1.35 or later and PHP 7.4 or later, run the following two commands.<syntaxhighlight lang="shell" line="1">
If you are using MediaWiki 1.35 or later and PHP 7.4 or later, run the following two commands.
<syntaxhighlight lang="shell" line="1" class="code-continue mlw-shell-gray">
IP="/var/www/wiki.example.com"
IP="/var/www/wiki.example.com"
OWNER="www-data"
OWNER="www-data"

Revision as of 21:25, 27 September 2022

Exension:Maps

In­stal­la­tion

If you are us­ing Me­di­aWi­ki 1.35 or lat­er and PHP 7.4 or lat­er, run the fol­low­ing two com­mands.

IP="/var/www/wiki.example.com"
OWNER="www-data"
cd "$IP"
sudo -u "$OENER" COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~9.0
sudo -u "$OENER" composer update mediawiki/maps --no-dev -o
sudo nano "${IP}/LocalSettings.php"
/**
 * Extension:Maps, https://maps.extension.wiki/wiki/Installation
 */
wfLoadExtension( 'Maps' );

For more de­tails see the in­stal­la­tion tab on the home page.

Ref­er­ences