Mediawiki: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
|
(No difference)
| |
Latest revision as of 14:34, 5 January 2025
Olimex
root@paardenpad:/var/lib/mediawiki# aptitude install mediawiki
root@paardenpad:/var/lib/mediawiki# vim /etc/mediawiki/apache.conf
- Uncomment line
Alias /mediawiki /var/lib/mediawiki
- LocalSettings.php
root@paardenpad:/etc/mediawiki# cat LocalSettings.php
<?php # This file was automatically generated by the MediaWiki 1.19.16+dfsg-0+deb7u1 # installer. If you make manual changes, please keep track in case you # need to recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # # Further documentation for configuration settings may be found at: # http://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; }
## Uncomment this to disable output compression # $wgDisableOutputCompression = true;
$wgSitename = "Paardenpad";
## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/mediawiki"; $wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs $wgServer = "https://paardenpad.xs4all.nl";
## The relative URL path to the skins directory $wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogo = "/mediawiki/trekschuit.jpg"; $wgFavicon = "/mediawiki/favicon.ico";
## UPO means: this is also a user preference option
$wgEnableEmail = false; $wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@paardenpad.xs4all.nl"; $wgPasswordSender = "apache@paardenpad.xs4all.nl";
$wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = true;
## Database settings $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "mediawiki"; $wgDBuser = "mediawiki"; $wgDBpassword = "twiamfhhh";
# MySQL specific settings $wgDBprefix = "";
# MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
# Experimental charset support for MySQL 5.0. $wgDBmysql5 = false;
## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from http://commons.wikimedia.org $wgUseInstantCommons = false;
## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale $wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if it's not already uncommented: #$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publically accessible from the web. #$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php $wgLanguageCode = "en";
$wgSecretKey = "e8a84aaabbebc2520aaabf01df0365e09cdf7789b3138bd7023a76df55f6a203";
# Site upgrade key. Must be set to a string (default provided) to turn on the # web installer while LocalSettings.php is in place $wgUpgradeKey = "92d16753ae943af7";
## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector': $wgDefaultSkin = "vector";
## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = "/usr/bin/diff3";
# debian-specific include: if (is_file("/etc/mediawiki-extensions/extensions.php")) { include("/etc/mediawiki-extensions/extensions.php"); }
# Query string length limit for ResourceLoader. You should only set this if # your web server has a query string length limit (then set it to that limit), # or if you have suhosin.get.max_value_length set in php.ini (then set it to # that value) $wgResourceLoaderMaxQueryLength = -1;
# The following permissions were set based on your choice in the installer $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
# Anonymous users can't create pages $wgGroupPermissions['*']['createpage'] = false;
# Disable reading by anonymous users $wgGroupPermissions['*']['read'] = false;
# But allow them to read e.g., these pages: $wgWhitelistRead = array ("Special:Userlogin");
# Enabled Extensions. Most extensions are enabled by including the base extension file here # but check specific extension documentation for more details # The following extensions were automatically enabled: require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); require_once( "$IP/extensions/Vector/Vector.php" ); require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ); require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
# End of automatically generated settings. # Add more configuration options below.
# Enables use of WikiEditor by default but still allow users to disable it in preferences $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
# Displays the Preview and Changes tabs $wgDefaultUserOptions['wikieditor-preview'] = 1;
# Displays the Publish and Cancel buttons on the top right side $wgDefaultUserOptions['wikieditor-publish'] = 1;
ProBook 6550b
root@ppl:~# aptitude install mediawiki
root@ppl:~# vim /etc/mediawiki/apache.conf
- Copy database, users en content from olimex to new database using phpMyAdmin
- Setup by browsing to http://ppl/mediawiki
- Regenerate LocalSettings.php
- Copy trekschuit.jpg and favicon.ico to /var/lib/mediawiki/
- LocalSettings.php
root@ppl:/var/lib/mediawiki# cat LocalSettings.php <?php # This file was automatically generated by the MediaWiki 1.27.4 # installer. If you make manual changes, please keep track in case you # need to recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # # Further documentation for configuration settings may be found at: # https://www.mediawiki.org/wiki/Manual:Configuration_settings # Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "Paardenpad"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/mediawiki"; ## The protocol and server name to use in fully-qualified URLs $wgServer = "https://paardenpad.rijkenmiel.nl"; ## The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath; ## The URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogo = "$wgResourceBasePath/resources/assets/trekschuit.jpg"; $wgFavicon = "$wgResourceBasePath/resources/assets/favicon.ico"; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "apache@paardenpad.rijkenmiel.nl"; $wgPasswordSender = "apache@paardenpad.rijkenmiel.nl"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "mediawiki"; $wgDBuser = "mediawiki"; $wgDBpassword = "twiamfhhh"; # MySQL specific settings $wgDBprefix = ""; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8"; # Experimental charset support for MySQL 5.0. $wgDBmysql5 = false; ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = []; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = false; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert"; # InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = false; ## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale $wgShellLocale = "en_US.utf8"; ## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publically accessible from the web. #$wgCacheDirectory = "$IP/cache"; # Site language code, should be one of the list in ./languages/data/Names.php $wgLanguageCode = "en"; $wgSecretKey = "7fd96c0df4fae8e7423e0247860ceffed314e17d14a7268638432c19c5773ea4"; # Changing this will log out all existing sessions. $wgAuthenticationTokenVersion = "1"; # Site upgrade key. Must be set to a string (default provided) to turn on the # web installer while LocalSettings.php is in place $wgUpgradeKey = "99f9b8021d190fb1"; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = "/usr/bin/diff3"; # The following permissions were set based on your choice in the installer $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': $wgDefaultSkin = "vector"; # Enabled skins. # The following skins were automatically enabled: wfLoadSkin( 'CologneBlue' ); wfLoadSkin( 'Modern' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Vector' ); # End of automatically generated settings. # Add more configuration options below. # Debian specific generated settings # Use system mimetypes $wgMimeTypeFile = '/etc/mime.types'; # Load legacy extensions if ( is_file( "/etc/mediawiki-extensions/extensions.php" ) ) { include "/etc/mediawiki-extensions/extensions.php"; } # Add a "powered by Debian" footer icon $wgFooterIcons['poweredby']['debian'] = [ "src" => "/mediawiki/resources/assets/debian/poweredby_debian_1x.png", "url" => "https://www.debian.org/", "alt" => "Powered by Debian", "srcset" => "/mediawiki/resources/assets/debian/poweredby_debian_1_5x.png 1.5x, " . "/mediawiki/resources/assets/debian/poweredby_debian_2x.png 2x", ]; # End Debian specific generated settings # Add more configuration options below.