Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:wikibase [2025/02/09 19:28] – darron | tools:wikibase [2025/02/15 12:24] (current) – [Mediawiki extension] darron | ||
---|---|---|---|
Line 4: | Line 4: | ||
There are two main methods of installation | There are two main methods of installation | ||
- | * As an extension | + | * As a [[: |
- | * As a docker deployment | + | * As a [[: |
===Mediawiki extension=== | ===Mediawiki extension=== | ||
Line 11: | Line 11: | ||
Visit the [[https:// | Visit the [[https:// | ||
- | This [[https:// | + | This [[https:// |
+ | |||
+ | ==Extract== | ||
+ | |||
+ | Enter the mediawiki installation directory and extract the archive into the extensions | ||
+ | directory | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | tar zxvf ~/ | ||
+ | chown -R www-data: | ||
+ | </ | ||
==Composer== | ==Composer== | ||
- | Enter the mediawiki | + | From the mediawiki |
< | < | ||
Line 27: | Line 38: | ||
< | < | ||
- | wfLoadExtension( ' | + | wfLoadExtension(' |
require_once " | require_once " | ||
</ | </ | ||
Line 42: | Line 53: | ||
</ | </ | ||
- | ===Wikibase deployment=== | + | /* |
+ | |||
+ | ==WikibaseRDF== | ||
+ | |||
+ | < | ||
+ | bash | ||
+ | COMPOSER=composer.local.json composer require --no-update professional-wiki/ | ||
+ | composer update professional-wiki/ | ||
+ | chown -R www-data: | ||
+ | exit | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | wfLoadExtension(' | ||
+ | $wgWikibaseRdfPredicates = [ | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ]; | ||
+ | </ | ||
+ | */ | ||
+ | |||
+ | ===Wikibase | ||
[[https:// | [[https:// | ||
+ | |||
+ | This setup requires a modern version of docker to be installed and was | ||
+ | tested on Debian bookworm on a dual core VM with 12GB of RAM. | ||
==Fetch== | ==Fetch== | ||
Line 68: | Line 105: | ||
# Public hostname configuration. | # Public hostname configuration. | ||
- | WIKIBASE_PUBLIC_HOST=wikibase.kewl.org | + | WIKIBASE_PUBLIC_HOST=wikibase.example.com |
- | WDQS_FRONTEND_PUBLIC_HOST=wdqs-frontend.kewl.org | + | WDQS_FRONTEND_PUBLIC_HOST=wdqs-frontend.example.com |
- | QUICKSTATEMENTS_PUBLIC_HOST=quickstatements.kewl.org | + | QUICKSTATEMENTS_PUBLIC_HOST=quickstatements.example.com |
# MediaWiki / Wikibase user configuration. | # MediaWiki / Wikibase user configuration. | ||
- | MW_ADMIN_NAME=darron | + | MW_ADMIN_NAME=username |
- | MW_ADMIN_EMAIL=darron@kewl.org | + | MW_ADMIN_EMAIL=email@example.com |
MW_ADMIN_PASS=changemetoatleast10chars | MW_ADMIN_PASS=changemetoatleast10chars | ||
# MediaWiki / Wikibase database configuration. | # MediaWiki / Wikibase database configuration. | ||
- | DB_NAME=kewl | + | DB_NAME=dbname |
- | DB_USER=sqluser | + | DB_USER=dbuser |
DB_PASS=changemetoatleast10chars | DB_PASS=changemetoatleast10chars | ||
</ | </ | ||
Line 99: | Line 136: | ||
===Resources=== | ===Resources=== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
[[tools: | [[tools: | ||
+ | |||
+ | [[https:// | ||