Arbores MediaWiki installation: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 30: Line 30:
$wgGroupPermissions['sysop' ]['noratelimit'] = true;
$wgGroupPermissions['sysop' ]['noratelimit'] = true;


== Builtin extension ==
== Builtin extensions ==
 
=== Server requirements ===


An installed wiki comes with preinstalled extensions that you can enable. However, some of these do not work on shared hosting, e.g.
An installed wiki comes with preinstalled extensions that you can enable. However, some of these do not work on shared hosting, e.g.
Line 46: Line 48:
  put exect, shell_exec, etc. on.
  put exect, shell_exec, etc. on.


<syntaxhighlight>
=== Syntaxhighlight ===
 
https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
 
In Linux, set execute permissions for the pygmentize binary. You can use an FTP client or the following shell command to do so:
 
chmod a+x /path/to/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize
 
 
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
 
 
== Liste of extensions enabled with config parameters ==
 
<syntaxhighlight lang="php">


</syntaxhighlight>
</syntaxhighlight>

Revision as of 15:56, 1 April 2021

Introduction

this page includes installation notes for this wiki.

Change permission

By default, anyone can create an account and contribute. To change:

$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['move'] = false; $wgGroupPermissions['*']['createtalk'] = false; $wgGroupPermissions['*']['upload'] = false; $wgGroupPermissions['*']['reupload'] = false; $wgGroupPermissions['*']['reupload-shared'] = false; $wgGroupPermissions['*']['minoredit'] = false;

$wgGroupPermissions['sysop' ]['move'] = true; $wgGroupPermissions['sysop' ]['read'] = true; $wgGroupPermissions['sysop' ]['edit'] = true; $wgGroupPermissions['sysop' ]['createpage'] = true; $wgGroupPermissions['sysop' ]['createtalk'] = true; $wgGroupPermissions['sysop' ]['upload'] = true; $wgGroupPermissions['sysop' ]['reupload'] = true; $wgGroupPermissions['sysop' ]['reupload-shared'] = true; $wgGroupPermissions['sysop' ]['minoredit'] = true; $wgGroupPermissions['sysop' ]['userrights'] = true; $wgGroupPermissions['sysop' ]['noratelimit'] = true;

Builtin extensions

Server requirements

An installed wiki comes with preinstalled extensions that you can enable. However, some of these do not work on shared hosting, e.g.

  • Visual editor requires a node.js server

Others require a change in server configuration, e.g.

  • SyntaxHighlight requires shell access. To enable this on Infomaniak, enable it (but evaluate the risks, if a portal is hacked the others will be too).
open the Manager (manager.infomaniak.com)
go to Hosting
click on the hosting/domain name concerned
under Sites, click on the domain name of the site concerned
click onA dvanced parameters
click on the PHP Tab
put exect, shell_exec, etc. on.

Syntaxhighlight

https://www.mediawiki.org/wiki/Extension:SyntaxHighlight

In Linux, set execute permissions for the pygmentize binary. You can use an FTP client or the following shell command to do so:

chmod a+x /path/to/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize


wfLoadExtension( 'SyntaxHighlight_GeSHi' );


Liste of extensions enabled with config parameters