forked from wikimedia/mediawiki-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocalSettings.php
67 lines (54 loc) · 1.63 KB
/
LocalSettings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* MediaWiki configuration
*
* To customize your MediaWiki instance, you may change the content of this
* file. See settings/README for an alternate way of managing small snippets of
* configuration data, such as extension invocations.
*
* This file is part of Mediawiki-Vagrant.
*/
// Enable error reporting
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgUploadDirectory = '/srv/images';
$wgUploadPath = '/images';
$wgArticlePath = "/wiki/$1";
// Show the debug toolbar if 'debug' is set on the request, either as a
// parameter or a cookie.
if ( !empty( $_REQUEST['debug'] ) ) {
$wgDebugToolbar = true;
}
// Expose debug info for PHP errors.
$wgShowExceptionDetails = true;
$wgDebugLogFile = __DIR__ . '/vagrant/logs/mediawiki-debug.log';
// Expose debug info for SQL errors.
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true;
// Profiling
$wgDebugProfiling = false;
// Images
$wgLogo = '/mediawiki-vagrant.png';
$wgUseInstantCommons = true;
$wgEnableUploads = true;
$wgGroupPermissions['*']['createpage'] = false;
// Caching
$wgMainCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = array( '127.0.0.1:11211' );
$wgEnableJavaScriptTest = true;
$wgProfilerParams = array(
'forceprofile' => 'ProfilerSimpleText',
'forcetrace' => 'ProfilerSimpleTrace'
);
foreach( $wgProfilerParams as $param => $cls ) {
if ( array_key_exists( $param, $_REQUEST ) ) {
$wgProfiler['class'] = $cls;
}
}
// Load configuration snippets from ./settings. See settings/README.
foreach( glob( __DIR__ . '/settings/*.php' ) as $snippet ) {
if ( !include_once( $snippet ) ) {
echo "Failed to load \"$snippet\".\n";
}
}