=1.38 erneut löschen und Prüfen ob das Problem behoben wurde. # Dies unterdruckt nur das Problem: CURLPIPE_HTTP1 is no longer supported # This is related to: # Warning: curl_multi_setopt(): CURLPIPE_HTTP1 is no longer supported in /var/www/html/includes/libs/http/MultiHttpClient.php on line 455
error_reporting(0); # Fix to solve net::ERR_HTTP2_PROTOCOL_ERROR 200 in Browsers other than Firefox in Desktops $wgDisableOutputCompression = true; #$wgInternalServer = '192.168.178.6'; # Add Trusted Proxys #################### $wgUseCdn = true; $wgCdnServers = array(); $wgCdnServers[] = "192.168.178.6"; # Use Squid #$wgUseSquid = true; #$wgSquidServers = array(); #$wgSquidServers[] = "192.168.178.6"; # CORS Settings #$wgCrossSiteAJAXdomains = [ # '*' #]; ## The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath; ## The URL paths to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogos = ['1x' => "$wgResourceBasePath/resources/assets/Wiki_Logo.png"]; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgSMTP = [ 'host' => 'ssl://smtp.gmail.com', // outbox server of the email account 'IDHost' => 'gmail.com', 'port' => 465, 'username' => 'rd13soft@gmail.com', // user of the email account 'password' => 'podkvrdmlvyutlps', // app password of the email account 'auth' => true ]; $wgEmergencyContact = "RD13Soft@gmail.com"; $wgPasswordSender = "RD13Soft@gmail.com"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "database"; $wgDBname = "rd13mediawikidb"; $wgDBuser = "wikiuser"; $wgDBpassword = "mwdbpw"; # MySQL specific settings $wgDBprefix = ""; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; # Shared database table # This has no effect unless $wgSharedDB is also set. $wgSharedTables[] = "actor"; ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = []; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableWriteAPI = true; // Enable the API $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.) $wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files // Make sure that the file types you want to upload are allowed: $wgFileExtensions = ['png', 'gif', 'jpg', 'jpeg', 'svg', 'doc', 'xls', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx']; # InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = true; # Periodically send a pingback to https://www.mediawiki.org/ with basic data # about this MediaWiki instance. The Wikimedia Foundation shares this data # with MediaWiki developers to help guide future development efforts. $wgPingback = 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. This should ideally be set to an English ## language locale so that the behaviour of C library functions will ## be consistent with typical installations. Use $wgLanguageCode to ## localise the wiki. $wgShellLocale = "C.UTF-8"; ## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publicly accessible from the web. #$wgCacheDirectory = "$IP/cache"; # Site language code, should be one of the list in ./languages/data/Names.php $wgLanguageCode = "de"; $wgSecretKey = "1c48a35b70beac25438b7712971ad16055017925636173b2bbcafc355170cfd3"; # 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 = "d1afea5946b0a23b"; ## 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"; # Costum Namespaces and permission settings ########################################### # Start with assigning the default permissions from group "user" inherited $wgGroupPermissions['conradgroup'] = $wgGroupPermissions['*']; $wgGroupPermissions['lauragroup'] = $wgGroupPermissions['*']; $wgGroupPermissions['colagroup'] = $wgGroupPermissions['*']; # Namespace definition for Conrad and Laura # Define constants for Conrads namespace define("NS_CONRAD", 3000); // This MUST be even. define("NS_CONRAD_TALK", 3001); // This MUST be the following odd integer. # Define constants for Laura namespace define("NS_LAURA", 3002); // This MUST be even. define("NS_LAURA_TALK", 3003); // This MUST be the following odd integer. # Define constants our CoLa namespace define("NS_COLA", 3004); // This MUST be even. define("NS_COLA_TALK", 3005); // This MUST be the following odd integer. # Add namespaces. $wgExtraNamespaces[NS_CONRAD] = "Conrad"; $wgExtraNamespaces[NS_CONRAD_TALK] = "Conrad_talk"; // Note underscores in the namespace name. $wgExtraNamespaces[NS_LAURA] = "Laura"; $wgExtraNamespaces[NS_LAURA_TALK] = "Laura_talk"; // Note underscores in the namespace name. $wgExtraNamespaces[NS_COLA] = "CoLa"; $wgExtraNamespaces[NS_COLA_TALK] = "CoLa_talk"; // Note underscores in the namespace name. # The following permissions were set based on your choice in the installer $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; # Special Namespace restrictions ################################# # only for editing per user or group, if viewing restriction is needed use Lockdown extension only # Special permissions for User Namespaces #$wgNamespaceProtection[NS_CONRAD] = array( 'editconrad' ); // permission "editfoo" required to edit the foo namespace #$wgNamespacesWithSubpages[NS_CONRAD] = true; // subpages enabled for the foo namespace #$wgGroupPermissions['conradgroup']['editconrad'] = true; // permission "editfoo" granted to users in the "sysop" group # Special permissions for User Namespaces #$wgNamespaceProtection[NS_LAURA] = array( 'editlaura' ); // permission "editfoo" required to edit the foo namespace #$wgNamespacesWithSubpages[NS_LAURA] = true; // subpages enabled for the foo namespace #$wgGroupPermissions['lauragroup']['editlaura'] = true; // permission "editfoo" granted to users in the "sysop" group ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': $wgDefaultSkin = "timeless"; # Enabled skins. # The following skins were automatically enabled: wfLoadSkin('MonoBook'); wfLoadSkin('Timeless'); wfLoadSkin('Vector'); # Enabled extensions. Most of the extensions are enabled by adding # wfLoadExtension( 'ExtensionName' ); # to LocalSettings.php. Check specific extension documentation for more details. # The following extensions were automatically enabled: wfLoadExtension('CategoryTree'); wfLoadExtension('Cite'); wfLoadExtension('CiteThisPage'); wfLoadExtension('CodeEditor'); wfLoadExtension('ConfirmEdit'); wfLoadExtension('Gadgets'); wfLoadExtension('ImageMap'); wfLoadExtension('InputBox'); wfLoadExtension('Interwiki'); wfLoadExtension('LocalisationUpdate'); wfLoadExtension('MultimediaViewer'); wfLoadExtension('Nuke'); wfLoadExtension('OATHAuth'); wfLoadExtension('ParserFunctions'); wfLoadExtension('PdfHandler'); wfLoadExtension('Poem'); wfLoadExtension('Renameuser'); wfLoadExtension('ReplaceText'); wfLoadExtension('Scribunto'); wfLoadExtension('SecureLinkFixer'); wfLoadExtension('SpamBlacklist'); wfLoadExtension('SyntaxHighlight_GeSHi'); wfLoadExtension('TemplateData'); wfLoadExtension('TextExtracts'); wfLoadExtension('TitleBlacklist'); wfLoadExtension('VisualEditor'); $wgVisualEditorAvailableNamespaces = array( NS_MAIN => true, NS_COLA_TALK => true, NS_USER => true, NS_HELP => true, NS_PROJECT => true, NS_CONRAD => true, NS_LAURA => true, NS_COLA => true ); wfLoadExtension('WikiEditor'); # End of automatically generated settings. # Add more configuration options below. ####################################### # Adding Lockdown for Page restrictions ####################################### wfLoadExtension('Lockdown'); # Lockdown for Conrads NS $wgNamespacePermissionLockdown[NS_CONRAD]['read'] = ['conradgroup']; $wgNamespacePermissionLockdown[NS_CONRAD]['edit'] = ['conradgroup']; $wgNonincludableNamespaces[] = NS_CONRAD; # Lockdown for Lauras NS $wgNamespacePermissionLockdown[NS_LAURA]['read'] = ['lauragroup']; $wgNamespacePermissionLockdown[NS_LAURA]['edit'] = ['lauragroup']; $wgNonincludableNamespaces[] = NS_LAURA; # Lockdown for CoLa NS $wgNamespacePermissionLockdown[NS_COLA]['read'] = ['colagroup']; $wgNamespacePermissionLockdown[NS_COLA]['edit'] = ['colagroup']; $wgNonincludableNamespaces[] = NS_COLA; #wfLoadExtension( 'ClipUpload' ); require_once "$IP/extensions/ClipUpload/ClipUpload.php"; $wgClipUP_Comment = "Discription goes here..."; $wgClipUP_MaxFileSize = "10000"; # MSUpload Extension #################### wfLoadExtension('MsUpload'); # Options $wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default) $wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category $wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default $wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style? $wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox $wgMSU_imgParams = 'thumb|none'; // Any image parameter(s), delimited by pipes, e.g., {width}px, left, right, center, none, border, frameless, frame, thumb etc. # SVG Converter Extension ###################### $wgSVGConverter = 'ImageMagick'; $wgAllowTitlesInSVG = true; # Path to ImageMagick #$wgSVGConverterPath = '/usr/bin/convert'; # PdfHandler Extension ###################### wfLoadExtension('PdfHandler'); # Options $wgPdfProcessor = '/usr/bin/gs'; #$wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick $wgPdfPostProcessor = '/usr/bin/convert'; // if not defined via ImageMagick $wgPdfInfo = '/usr/bin/pdfinfo'; $wgPdftoText = '/usr/bin/pdftotext'; #$wgGenerateThumbnailOnParse = true; // Could make Thumbnail creation if there are problems # Allow External Images from my own servers $wgAllowExternalImages = true; $wgAllowExternalImagesFrom = ['http://127.0.0.1/', 'https://cloud.rd13server.de/']; // MediaWiki 1.14+ # Extend preview creation file size and pixel size # Maximum amount of virtual memory available to shell processes under Linux, in KiB. $wgMaxShellMemory = 307200; $wgMaxShellFileSize = 307200; # Support Video Files and external Video Sources ################################################ wfLoadExtension('EmbedVideo'); $wgEmbedVideoAddFileExtensions = true; // Boolean - Enable or disable adding video/audio file extensions to the list of allowable files to be uploaded. $wgEmbedVideoEnableVideoHandler = true; // Boolean - Enable or disable the video media handlers for displaying embedded video in articles. $wgEmbedVideoEnableAudioHandler = true; // Boolean - Enable or disable the audio media handlers for displaying embedded audio in articles. #$wgEmbedVideoDefaultWidth = 480; // Integer - Globally override the default width of video players. When not set this uses the video service's default width which is typically 640 pixels. #$wgEmbedVideoMinWidth = 480; // Integer - Minimum width of video players. Widths specified below this value will be automatically bounded to it. $wgEmbedVideoMaxWidth = 1920; // Integer - Maximum width of video players. Widths specified above this value will be automatically bounded to it. $wgFFmpegLocation = '/usr/bin/ffmpeg'; // String - Set the location of the ffmpeg binary. $wgFFprobeLocation = '/usr/bin/ffprobe'; // String - Set the location of the ffprobe binary. # Category Tree ############### $wgCategoryTreeSidebarRoot = 'Category:Hauptseite'; $wgCategoryTreeForceHeaders = true; # Depth of tree per TreeMode $wgCategoryTreeMaxDepth = [10 => 5, 20 => 5, 0 => 5, 100 => 5]; $wgCategoryTreeDefaultMode = 10; # Math Formula extensions ########################## wfLoadExtension('Math'); # Install instructions # run this command from wiki root maintanence e.g. /var/www/html/maintenance # php update.php # to update databes tables # Using Mathoid as a service from external Sources # It is possible to host the server by myself but it is a way more complex installation an still in beta state as of May 2021 // Set MathML as default rendering option $wgDefaultUserOptions['math'] = 'mathml'; $wgMathFullRestbaseURL = 'https://en.wikipedia.org/api/rest_'; $wgMathMathMLUrl = 'https://mathoid-beta.wmflabs.org/'; # Json Extension needed for Graph extension ########################################### wfLoadExtension('JsonConfig'); # Adding Graph extension ######################### wfLoadExtension('Graph'); # https://www.mediawiki.org/wiki/Extension:Graph # My be some files are missing and Modules need to be added unter Additional config setup # but i dont know how atm # Adding Maps Support ###################### # Uncomment after installing # Istalling with: all in wiki root html # curl https://getcomposer.org/composer-2.phar > composer.phar # mv composer.phar /usr/local/bin/composer # chmod +x /usr/local/bin/composer # COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0 # composer update # composer update mediawiki/maps --no-dev -o # inside the wiki shell wfLoadExtension('Maps'); $egMapsDefaultService = 'leaflet'; $egMapsDefaultGeoService = 'nominatim'; # Kartographer as a subcategory wfLoadExtension('Kartographer'); # Global OpenStreetmap tile Server # Open Streetmap Tile server does not serve @2x tiles #$wgKartographerMapServer = 'https://tile.openstreetmap.org'; #$wgKartographerDfltStyle = ''; # Frensh tile severthat works with wiki out of the box #$wgKartographerMapServer = 'https://tile.openstreetmap.fr'; #$wgKartographerDfltStyle = 'osmfr'; # Problem mit der Konfiguration von einem Externen Tile Server # MediaWiki implementiert nur seinen eigenen Tile Server mit einer Festen Syntax # Dies führt dazu das er immer osm-intl an die URL des Tile Server anhängt # Dies ist nicht zu entfernen. Mein Workaround den ich gefunden habe ist // als # DfltStyle anzugeben. Dies kann nur von dem Deutschen OSM Tile server Ignoriert werden. # Dieser kann aber nicht mit Pins umgehen. (evtl. eigenen Tile server Bauen der das alles kann) # In der Zwischenzeit ist das meine Lösung: # Doppel slash kann von dem Deutschen Open Street Map Server ignoriert werden # This works fine but would need to serve via https in order do be allowed on modern Browsers (Consol Log Mixed-Content error) #$wgKartographerMapServer = 'http://192.168.178.5:8091'; #$wgKartographerDfltStyle = 'styles/klokantech-basic'; ####################################### # Retina Bildschirme schicken noch ein @2x in der URL mit dies kann der Deutsche Tile Server auch noch nicht. # Eigener Martin Tile Server (ueber NPM/HTTPS erreichbar) # Beispiel: https://tiles.rd13server.de # Kartographer baut URLs als {MapServer}/{Style}/{z}/{x}/{y}.png. $wgKartographerMapServer = 'https://tiles.rd13server.de/styles'; # Verfuegbare Styles aus dem Martin Server $wgKartographerStyles = [ 'osm-intl', ]; # Standardstil fuer / $wgKartographerDfltStyle = 'osm-intl'; $wgKartographerSrcsetScales = [1]; # Adding Musical notation with score Notation ############################################# wfLoadExtension('Score'); ########################################## # Some security risks check for updates # User could execute code through it if users are trustworthy there shouldnt be a problem ########################################## $wgScoreTrim = true; #$wgImageMagickConvertCommand = '/usr/bin/convert'; # already set for image upload $wgShellRestrictionMethod = 'firejail'; # For shell memory errors increase #$wgMaxShellMemory = xxxx; # Timedmedia Extension needed for Score and Video Support wfLoadExtension('TimedMediaHandler'); #$wgFFmpegLocation = '/usr/bin/ffmpeg'; # already set under embedvideo #$wgMaxShellMemory = xxxx; # For performance issuse # Eventually fix for Issu: Parsoid/RESTbase: (curl error: 7) Couldn't connect to server # Restart OSX helped for me last time # MediaWiki Page: https://www.mediawiki.org/wiki/Topic:Uzwaxv6t2myhvf8o #if ( $_SERVER['REMOTE_ADDR'] == '127.0.0.1' ) { # $wgGroupPermissions['*']['read'] = true; # $wgGroupPermissions['*']['edit'] = true; # } #uri: 'http://localhost/api.php'