Benutzer:Saper/Mirror
Setting up a Piratewiki mirror
Get:
https://wiki.piratenpartei.de/XMLdump/Piratenwiki_XMLdump_current_revisions.xml.gz https://wiki.piratenpartei.de/XMLdump/Piratenwiki_Settings.tgz https://wiki.piratenpartei.de/XMLdump/Piratenwiki_Extensions.tgz
Download MediaWiki 1.16.0:
http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.0.tar.gz
Assuming
$root- your webserver root directory, MediaWiki will be installed in the/wikisubdirectory. Assuming Short URL setup with wiki in site root directory.$w- MediaWiki directory, the one withLocalSettings.php. Normally it is the same as$root/wiki.$download- directory with downloaded files.
tar xzf $download/mediawiki-1.16.0.tar.gz mv mediawiki-1.16.0 $w cd $w svn checkout -r95573 --depth empty http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_0/extensions svn-extensions tar xzf $download/Piratenwiki_Extensions.tgz
cd $w/svn-extensions svn up -r95573 AbuseFilter AntiSpoof Call CategoryTree CategoryWatch Cite ConfirmEdit EditUser Gadgets ImageMap InputBox Interwiki Lockdown ParserFunctions Poem Renameuser ReplaceText SemanticForms SemanticMediaWiki SemanticResultFormats StringFunctions UserMerge timeline cd $w svn checkout -r 72454 http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/DynamicPageList svn-trunk-extensions/DynamicPageList chmod a+w $w/config
Apply this patch:
Index: SemanticResultFormats/SRF_Settings.php
===================================================================
--- SemanticResultFormats/SRF_Settings.php (wersja 95573)
+++ SemanticResultFormats/SRF_Settings.php (kopia robocza)
@@ -11,8 +11,8 @@
define('SRF_VERSION', '1.4.6');
-$srfgScriptPath = $wgScriptPath . '/extensions/SemanticResultFormats';
-$srfgIP = $IP . '/extensions/SemanticResultFormats';
+$srfgScriptPath = $wgScriptPath . '/svn-extensions/SemanticResultFormats';
+$srfgIP = $IP . '/svn-extensions/SemanticResultFormats';
$wgExtensionMessagesFiles['SemanticResultFormats'] = $srfgIP . '/SRF_Messages.php';
$wgExtensionFunctions[] = 'srffSetup';
Have MySQL administrative user and password that can create databases.
Add this to your Apache configuration (be sure to replace $root):
DocumentRoot "$root"
RewriteEngine On
RewriteRule ^/favicon\.ico - [R=404]
RewriteCond %{REQUEST_URI} !^/w.*/
RewriteRule ^(.*) /wiki/index.php/$1 [L]
php_value error_reporting 22527
php_value display_errors 0
# Don't bother sending the custom error page for favicon.ico
<Location /favicon.ico>
ErrorDocument 404 "No favicon
</Location>
Go to
http://yourserver/wiki/config/
Install MediaWiki as usual.
cd $w grep '(<\?php|wgDB|wgSecret)' config/LocalSettings.php > Secrets.php tar xzf $download/Piratenwiki_Settings.tgz
php maintenance/update.php MW_INSTALL_PATH=$w export MW_INSTALL_PATH cd $w/svn-extensions/SemanticMediaWiki/maintenance/ php SMW_setup.php --conf $w/LocalSettings.php -aconf $w/AdminSettings.php
Make skins files writable by the web server:
mkdir $w/skins/advancedskin chmod -R a+w $w/skins
Copy wiki logo into $w/skins
You can now proceed to import the wiki data.
At some point when Filler and Skin namespaces get imported, do this:
Login to the wiki as the sysop user and run skin update of all skins:
http://yourservername/Spezial:UpdateSkins