Protoball:Setup: Difference between revisions

From Protoball
Jump to navigation Jump to search
(Created page with "== MediaWiki == Wikimedia is moving from SVN to Git. Current stable version is 1.19.0; Dreamhost uses 1.16. Many extensions are still svn only. * https://www.mediawiki.org/w...")
 
No edit summary
Line 34: Line 34:
</pre>
</pre>


== Semantic Bundle ==
== Extensions ==
 
=== Semantic Bundle ===


* https://www.mediawiki.org/wiki/Download_from_SVN
* https://www.mediawiki.org/wiki/Download_from_SVN
Line 69: Line 71:


temp fix, do not enable Semantic Image Input
temp fix, do not enable Semantic Image Input
== Cite ==
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Cite.git


== Enable Image Uploads ==
== Enable Image Uploads ==

Revision as of 11:34, 16 May 2012

MediaWiki

Wikimedia is moving from SVN to Git. Current stable version is 1.19.0; Dreamhost uses 1.16. Many extensions are still svn only.

git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git
cd core
git checkout 1.9.6
cd ..
mv core _web_directory_

Short Urls

LocalSettings.php

$wgScriptPath       = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";
$wgArticlePath      = "$wgScriptPath/$1";

.htaccess

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(skins|stylesheets|images|config|extensions)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index|load).php
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|robots\.txt|protoball\.png)
RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]

Extensions

Semantic Bundle

svn co http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/phase3
mv phase3
cd phase3/extensions
svn co http://semantic-mediawiki-bundle.googlecode.com/svn/trunk/ semantic-bundle
make ext
cp SemanticBundleSettings.sample.php SemanticBundleSettings.php
cp * _web_directory_/extensions/ -R

LocalSettings.php

require_once( "$IP/extensions/semantic-bundle/SemanticBundleSettings.php" );
require_once( "$IP/extensions/semantic-bundle/SemanticBundle.php" );

In page Special:SMWAdmin, click Initialize

php maintenance/update.php
vim SemanticBundleSettings.php
:%s/#include_once/include_once/g

Note: Parse error: syntax error, unexpected T_FUNCTION in /home/protoball/protoballproject.org/extensions/SemanticImageInput/SemanticImageInput.php on line 58

temp fix, do not enable Semantic Image Input

Cite

https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Cite.git


Enable Image Uploads

LocalSettings.php (edit)

$wgEnableUploads  = true;
chmod a+w images

Change Main Page

edit special page MediaWiki:Mainpage text