Embed Maps: Difference between revisions

From WikiMLT
m (Стадий: 3 [Фаза:Разработване, Статус:Разработван]; Категория:WikiMLT Features)
Line 1: Line 1:
<noinclude><!--[[Category:WikiMLT Features|?]]-->{{ContentArticleHeader/WikiMLT_Features}}</noinclude>
<noinclude><!--[[Category:WikiMLT Features|?]]-->{{ContentArticleHeader/WikiMLT_Features}}</noinclude>
== Exension:Maps ==
* MediaWiki Extension: [[mw:Extension:Maps|'''Extension:Maps''']]
* ProfessionalWiki at GitHub: [https://github.com/ProfessionalWiki/Maps/ Maps]
* Home page: [https://maps.extension.wiki/wiki/Maps_for_MediaWiki Maps for MediaWiki]
=== 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">
IP="/var/www/wiki.example.com"
OWNER="www-data"
</syntaxhighlight><syntaxhighlight lang="shell" line="1">
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
</syntaxhighlight><syntaxhighlight lang="shell" line="1">
sudo nano "${IP}/LocalSettings.php"
</syntaxhighlight><syntaxhighlight lang="php" line="1" start="750">
/**
* Extension:Maps, https://maps.extension.wiki/wiki/Installation
*/
wfLoadExtension( 'Maps' );
</syntaxhighlight>For more details see the installation tab on the home page.
== References ==
== References ==


Line 5: Line 29:


* ...
* ...
== Section 1 ==
...


<noinclude>
<noinclude>

Revision as of 21:24, 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