mediawiki: Fix up mediawiki for new version
Move IP setting to apache Load modules the new one for ones that support it. Undefine db prefix that was confusing mysql Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
3a60f8c94a
commit
eb31a3ae0a
2 changed files with 11 additions and 31 deletions
|
@ -9,19 +9,6 @@
|
|||
#error_reporting(1);
|
||||
#session_start();
|
||||
|
||||
# If you customize your file layout, set $IP to the directory that contains
|
||||
# the other MediaWiki files. It will be used as a base to locate files.
|
||||
if( defined( 'MW_INSTALL_PATH' ) ) {
|
||||
$IP = MW_INSTALL_PATH;
|
||||
} else {
|
||||
$IP = dirname( __FILE__ );
|
||||
}
|
||||
|
||||
|
||||
#$IP = '/usr/share/mediawiki';
|
||||
$path = array( $IP, "$IP/includes", "$IP/languages" );
|
||||
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
|
||||
|
||||
# Added for timeout testing
|
||||
require_once( "includes/DefaultSettings.php" );
|
||||
#$wgDebugLogFile = '/tmp/out.log';
|
||||
|
@ -152,7 +139,7 @@ $wgDBprefix = "en_";
|
|||
$wgDBTableOptions = "TYPE=InnoDB";
|
||||
|
||||
# Schemas for Postgres
|
||||
$wgDBmwschema = "mediawiki";
|
||||
#$wgDBmwschema = "mediawiki";
|
||||
$wgDBts2schema = "public";
|
||||
|
||||
# Experimental charset support for MySQL 4.1/5.0.
|
||||
|
@ -317,29 +304,20 @@ $wgNamespacesToBeSearchedDefault = array(
|
|||
NS_TEST_RESULTS => true,
|
||||
NS_TEST_RESULTS_TALK => false
|
||||
);
|
||||
|
||||
#require_once "$IP/extensions/OpenID/OpenID.setup.php";
|
||||
require_once "$IP/extensions/OpenID/OpenID.setup.php";
|
||||
#require 'extensions/StubManager/StubManager.php';
|
||||
#require 'extensions/HNP/HNP.php';
|
||||
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
|
||||
require_once "$IP/extensions/Interwiki/Interwiki.php";
|
||||
require_once "$IP/extensions/Cite/Cite.php";
|
||||
#require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
|
||||
#require_once "$IP/extensions/Interwiki/Interwiki.php";
|
||||
#require_once "$IP/extensions/Cite/Cite.php";
|
||||
require_once "$IP/extensions/fedmsg-emit.php";
|
||||
require_once "$IP/extensions/HTTP302Found/HTTP302Found.php";
|
||||
require_once "$IP/extensions/RSS/RSS.php";
|
||||
require_once "$IP/extensions/BassetSubmitter.php";
|
||||
#require_once "$IP/extensions/BassetSubmitter.php";
|
||||
require_once "$IP/extensions/FedoraDocsRedirect/FedoraDocsRedirect.php";
|
||||
|
||||
{% if env == "staging" %}
|
||||
$basset_url = 'http://basset01.stg.phx2.fedoraproject.org/basset';
|
||||
$basset_username = '{{ basset_stg_frontend_user }}';
|
||||
$basset_password = '{{ basset_stg_frontend_pass }}';
|
||||
{% else %}
|
||||
$basset_url = 'http://basset01.phx2.fedoraproject.org/basset';
|
||||
$basset_username = '{{ basset_prod_frontend_user }}';
|
||||
$basset_password = '{{ basset_prod_frontend_pass }}';
|
||||
{% endif %}
|
||||
|
||||
wfLoadExtension( 'ParserFunctions' );
|
||||
wfLoadExtension( 'Interwiki' );
|
||||
wfLoadExtension( 'Cite' );
|
||||
|
||||
$wgShowExceptionDetails = true;
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ Alias /{{ wpath }} /srv/web/{{ wikiname }}-wiki
|
|||
Alias /{{ wikipath }} /srv/web/{{ wikiname }}-wiki/index.php
|
||||
|
||||
<Directory /srv/web/{{ wikiname }}-wiki>
|
||||
SetEnv MW_INSTALL_PATH /srv/web/{{ wikiname }}-wiki
|
||||
Options SymLinksIfOwnerMatch
|
||||
AllowOverride None
|
||||
<IfModule mod_authz_core.c>
|
||||
|
@ -19,6 +20,7 @@ Alias /{{ wikipath }} /srv/web/{{ wikiname }}-wiki/index.php
|
|||
</Directory>
|
||||
|
||||
<Directory /mnt/web/attachments>
|
||||
SetEnv MW_INSTALL_PATH /srv/web/{{ wikiname }}
|
||||
Options SymLinksIfOwnerMatch
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue