Skip to content

Commit adeead4

Browse files
committed
fixed to work with 1.31.1 and 1.32.1
1 parent f241089 commit adeead4

File tree

4 files changed

+234
-0
lines changed

4 files changed

+234
-0
lines changed
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?php
2+
# This file was automatically generated by the MediaWiki 1.32.1
3+
# installer. If you make manual changes, please keep track in case you
4+
# need to recreate them later.
5+
#
6+
# See includes/DefaultSettings.php for all configurable settings
7+
# and their default values, but don't forget to make changes in _this_
8+
# file, not there.
9+
#
10+
# Further documentation for configuration settings may be found at:
11+
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
12+
13+
# Protect against web entry
14+
if ( !defined( 'MEDIAWIKI' ) ) {
15+
exit;
16+
}
17+
18+
19+
## Uncomment this to disable output compression
20+
# $wgDisableOutputCompression = true;
21+
22+
$wgSitename = "Test Wiki";
23+
$wgMetaNamespace = "Test_Wiki";
24+
25+
## The URL base path to the directory containing the wiki;
26+
## defaults for all runtime URL paths are based off of this.
27+
## For more information on customizing the URLs
28+
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
29+
## https://www.mediawiki.org/wiki/Manual:Short_URL
30+
$wgScriptPath = "";
31+
32+
## The protocol and server name to use in fully-qualified URLs
33+
$wgServer = "http://localhost:8080";
34+
35+
## The URL path to static resources (images, scripts, etc.)
36+
$wgResourceBasePath = $wgScriptPath;
37+
38+
## The URL path to the logo. Make sure you change this from the default,
39+
## or else you'll overwrite your logo when you upgrade!
40+
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
41+
42+
## UPO means: this is also a user preference option
43+
44+
$wgEnableEmail = false;
45+
$wgEnableUserEmail = true; # UPO
46+
47+
$wgEmergencyContact = "apache@localhost";
48+
$wgPasswordSender = "apache@localhost";
49+
50+
$wgEnotifUserTalk = false; # UPO
51+
$wgEnotifWatchlist = false; # UPO
52+
$wgEmailAuthentication = true;
53+
54+
## Database settings
55+
$wgDBtype = "mysql";
56+
$wgDBserver = "database";
57+
$wgDBname = "my_wiki";
58+
$wgDBuser = "wikiuser";
59+
$wgDBpassword = "example";
60+
61+
# MySQL specific settings
62+
$wgDBprefix = "";
63+
64+
# MySQL table options to use during installation or update
65+
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
66+
67+
## Shared memory settings
68+
$wgMainCacheType = CACHE_NONE;
69+
$wgMemCachedServers = [];
70+
71+
## To enable image uploads, make sure the 'images' directory
72+
## is writable, then set this to true:
73+
$wgEnableUploads = false;
74+
$wgUseImageMagick = true;
75+
$wgImageMagickConvertCommand = "/usr/bin/convert";
76+
77+
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
78+
$wgUseInstantCommons = false;
79+
80+
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
81+
# about this MediaWiki instance. The Wikimedia Foundation shares this data
82+
# with MediaWiki developers to help guide future development efforts.
83+
$wgPingback = false;
84+
85+
## If you use ImageMagick (or any other shell command) on a
86+
## Linux server, this will need to be set to the name of an
87+
## available UTF-8 locale
88+
$wgShellLocale = "C.UTF-8";
89+
90+
## Set $wgCacheDirectory to a writable directory on the web server
91+
## to make your wiki go slightly faster. The directory should not
92+
## be publically accessible from the web.
93+
#$wgCacheDirectory = "$IP/cache";
94+
95+
# Site language code, should be one of the list in ./languages/data/Names.php
96+
$wgLanguageCode = "en";
97+
98+
$wgSecretKey = "c886393da33222d5ba10b5f0fa0f4d8775afa22ed8ac879d324225ab58090903";
99+
100+
# Changing this will log out all existing sessions.
101+
$wgAuthenticationTokenVersion = "1";
102+
103+
# Site upgrade key. Must be set to a string (default provided) to turn on the
104+
# web installer while LocalSettings.php is in place
105+
$wgUpgradeKey = "ac3aa9d960562f39";
106+
107+
## For attaching licensing metadata to pages, and displaying an
108+
## appropriate copyright notice / icon. GNU Free Documentation
109+
## License and Creative Commons licenses are supported so far.
110+
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
111+
$wgRightsUrl = "";
112+
$wgRightsText = "";
113+
$wgRightsIcon = "";
114+
115+
# Path to the GNU diff3 utility. Used for conflict resolution.
116+
$wgDiff3 = "/usr/bin/diff3";
117+
118+
## Default skin: you can change the default skin. Use the internal symbolic
119+
## names, ie 'vector', 'monobook':
120+
$wgDefaultSkin = "vector";
121+
122+
# Enabled skins.
123+
# The following skins were automatically enabled:
124+
wfLoadSkin( 'MonoBook' );
125+
wfLoadSkin( 'Vector' );
126+
127+
128+
# End of automatically generated settings.
129+
# Add more configuration options below.
130+
$wgShowExceptionDetails = true;
131+
$wgShowDBErrorBacktrace = true;
132+
$wgShowSQLErrors = true;
133+
134+
error_reporting( -1 );
135+
ini_set( 'display_errors', 1 );
136+
137+
# load Memento MediaWiki Extension
138+
wfLoadExtension( 'Memento' );
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# MediaWiki with MariaDB
2+
#
3+
# Access via "http://localhost:8080"
4+
# (or "http://$(docker-machine ip):8080" if using docker-machine)
5+
version: '3.7'
6+
services:
7+
mediawiki:
8+
image: mediawiki:1.27.5
9+
restart: always
10+
ports:
11+
- 8080:80
12+
links:
13+
- database
14+
volumes:
15+
- /var/www/html/images
16+
# After initial setup, download LocalSettings.php to the same directory as
17+
# this yaml and uncomment the following line and use compose to restart
18+
# the mediawiki service
19+
- ./LocalSettings-1.27.5.php:/var/www/html/LocalSettings.php
20+
- ../../Memento:/var/www/html/extensions/Memento
21+
database:
22+
image: mariadb
23+
restart: always
24+
environment:
25+
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
26+
MYSQL_DATABASE: my_wiki
27+
MYSQL_USER: wikiuser
28+
MYSQL_PASSWORD: example
29+
MYSQL_ROOT_PASSWORD: testroot
30+
volumes:
31+
- ./backup.sql:/backup.sql
32+
- ./loaddb.sh:/loaddb.sh
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# MediaWiki with MariaDB
2+
#
3+
# Access via "http://localhost:8080"
4+
# (or "http://$(docker-machine ip):8080" if using docker-machine)
5+
version: '3.7'
6+
services:
7+
mediawiki:
8+
image: mediawiki:1.31.1
9+
restart: always
10+
ports:
11+
- 8080:80
12+
links:
13+
- database
14+
volumes:
15+
- /var/www/html/images
16+
# After initial setup, download LocalSettings.php to the same directory as
17+
# this yaml and uncomment the following line and use compose to restart
18+
# the mediawiki service
19+
- ./LocalSettings.php:/var/www/html/LocalSettings.php
20+
- ../../Memento:/var/www/html/extensions/Memento
21+
database:
22+
image: mariadb
23+
restart: always
24+
environment:
25+
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
26+
MYSQL_DATABASE: my_wiki
27+
MYSQL_USER: wikiuser
28+
MYSQL_PASSWORD: example
29+
MYSQL_ROOT_PASSWORD: testroot
30+
volumes:
31+
- ./backup.sql:/backup.sql
32+
- ./loaddb.sh:/loaddb.sh
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# MediaWiki with MariaDB
2+
#
3+
# Access via "http://localhost:8080"
4+
# (or "http://$(docker-machine ip):8080" if using docker-machine)
5+
version: '3.7'
6+
services:
7+
mediawiki:
8+
image: mediawiki:1.32.1
9+
restart: always
10+
ports:
11+
- 8080:80
12+
links:
13+
- database
14+
volumes:
15+
- /var/www/html/images
16+
# After initial setup, download LocalSettings.php to the same directory as
17+
# this yaml and uncomment the following line and use compose to restart
18+
# the mediawiki service
19+
- ./LocalSettings.php:/var/www/html/LocalSettings.php
20+
- ../../Memento:/var/www/html/extensions/Memento
21+
database:
22+
image: mariadb
23+
restart: always
24+
environment:
25+
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
26+
MYSQL_DATABASE: my_wiki
27+
MYSQL_USER: wikiuser
28+
MYSQL_PASSWORD: example
29+
MYSQL_ROOT_PASSWORD: testroot
30+
volumes:
31+
- ./backup.sql:/backup.sql
32+
- ./loaddb.sh:/loaddb.sh

0 commit comments

Comments
 (0)