Difference between revisions of "How to: Host your own copy of this wiki"
(→Host the slides and transcripts) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
For example, if you want your database name ''ipasuswiki'', the user name ''testuser'' with password ''testpw'': | For example, if you want your database name ''ipasuswiki'', the user name ''testuser'' with password ''testpw'': | ||
+ | <code> | ||
create database if not exists ipasuswiki; | create database if not exists ipasuswiki; | ||
Line 29: | Line 30: | ||
flush privileges; | flush privileges; | ||
− | + | </code> | |
== Install media wiki == | == Install media wiki == | ||
Download [https://www.mediawiki.org/wiki/Download mediawiki]. I tested this process with version [https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz 1.33.0]. Extract it and move it to your webroot: | Download [https://www.mediawiki.org/wiki/Download mediawiki]. I tested this process with version [https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz 1.33.0]. Extract it and move it to your webroot: | ||
+ | <code> | ||
wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz | wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz | ||
+ | |||
tar xzf mediawiki-1.33.0.tar.gz | tar xzf mediawiki-1.33.0.tar.gz | ||
+ | |||
mv mediawiki-1.33.0 ipasuswiki; mv ipasuswiki /var/www/html/ | mv mediawiki-1.33.0 ipasuswiki; mv ipasuswiki /var/www/html/ | ||
+ | </code> | ||
After that, open in your browser ''localhost/ipasuswiki'' and follow the instructions. | After that, open in your browser ''localhost/ipasuswiki'' and follow the instructions. | ||
Line 44: | Line 49: | ||
== Get a dump of this wiki == | == Get a dump of this wiki == | ||
− | Download the official [https://github.com/WikiTeam/wikiteam/blob/master/dumpgenerator.py dumpgenerator script], get the dump and replace the hardcoded domain links (let's say, your domain | + | Download the official [https://github.com/WikiTeam/wikiteam/blob/master/dumpgenerator.py dumpgenerator script], get the dump and replace the hardcoded domain links (let's say, your domain was ''https://ipasusfan.org/ipasuswiki''): |
+ | <code> | ||
wget https://raw.githubusercontent.com/WikiTeam/wikiteam/master/dumpgenerator.py | wget https://raw.githubusercontent.com/WikiTeam/wikiteam/master/dumpgenerator.py | ||
+ | |||
python dumpgenerator.py --api=https://www.marcus-ipasus.com/woeihwiki/api.php --xml --images | python dumpgenerator.py --api=https://www.marcus-ipasus.com/woeihwiki/api.php --xml --images | ||
+ | </code> | ||
(if the script complains about missing packages, let's say ''kitchen'', simply install them: | (if the script complains about missing packages, let's say ''kitchen'', simply install them: | ||
− | pip install kitchen) | + | <code>pip install kitchen</code>) |
− | sed -i 's/https\:\/\/www.marcus-ipasus.com\/woeihwiki/https\:\/\/ipasusfan.org\/ | + | <code> |
+ | sed -i 's/https\:\/\/www.marcus-ipasus.com\/woeihwiki/https\:\/\/ipasusfan.org\/ipasuswiki/g' * | ||
+ | </code> | ||
== Import the dump == | == Import the dump == | ||
Line 58: | Line 68: | ||
Import the dump by running the import script under maintenance, see [https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps]: | Import the dump by running the import script under maintenance, see [https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps]: | ||
+ | <code> | ||
php importDump.php ~/wikidump/marcus_ipasuscom_woeihwiki-20190922-wikidump/marcus_ipasuscom_woeihwiki-20190922-history.xml | php importDump.php ~/wikidump/marcus_ipasuscom_woeihwiki-20190922-wikidump/marcus_ipasuscom_woeihwiki-20190922-history.xml | ||
+ | </code> | ||
Do yourself a favor and switch the look of user interface from the default ''vector'' to ''monobook''. | Do yourself a favor and switch the look of user interface from the default ''vector'' to ''monobook''. | ||
− | . | + | |
+ | == Host the slides and transcripts == | ||
+ | |||
+ | You can download the slides from [https://archive.org/details/mppodcastslides archive.org]: | ||
+ | |||
+ | <code> | ||
+ | wget "https://archive.org/compress/mppodcastslides/formats=IMAGE%20CONTAINER%20PDF,TEXT%20PDF&file=/mppodcastslides.zip" | ||
+ | |||
+ | mkdir /var/www/html/ipasuswiki/slides | ||
+ | |||
+ | unzip mppodcastslides.zip -d /var/www/html/ipasuswiki/slides | ||
+ | |||
+ | mkdir /var/www/html/ipasuswiki/transcripts | ||
+ | |||
+ | wget "https://archive.org/compress/woeihpodcast201/formats=TEXT%20PDF&file=/woeihpodcast201.zip" | ||
+ | |||
+ | unzip woeihpodcast201.zip -d /var/www/html/ipasuswiki/transcripts | ||
+ | </code> | ||
+ | |||
+ | |||
+ | '''Enjoy!''' |
Latest revision as of 22:43, 22 September 2019
Feel encouraged to host your own copy of this wiki, as I'm a big fan of decentralization and redundancy! You need:
- basic admin skills
- your own webserver with
- python
- apache
- php
- mysql
- ten minutes:
Contents
Set up a lamp
Set up apache, mysql and php. See [1]
Prepare the database
For example, if you want your database name ipasuswiki, the user name testuser with password testpw:
create database if not exists ipasuswiki;
create user 'testuser'@'localhost' identified by 'testpw';
grant usage on *.* to 'testuser'@'localhost' identified by 'testpw';
grant all privileges on ipasuswiki.* to 'testuser'@'localhost';
flush privileges;
Install media wiki
Download mediawiki. I tested this process with version 1.33.0. Extract it and move it to your webroot:
wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz
tar xzf mediawiki-1.33.0.tar.gz
mv mediawiki-1.33.0 ipasuswiki; mv ipasuswiki /var/www/html/
After that, open in your browser localhost/ipasuswiki and follow the instructions.
See https://www.mediawiki.org/wiki/Manual:Installation_guide
Get a dump of this wiki
Download the official dumpgenerator script, get the dump and replace the hardcoded domain links (let's say, your domain was https://ipasusfan.org/ipasuswiki):
wget https://raw.githubusercontent.com/WikiTeam/wikiteam/master/dumpgenerator.py
python dumpgenerator.py --api=https://www.marcus-ipasus.com/woeihwiki/api.php --xml --images
(if the script complains about missing packages, let's say kitchen, simply install them:
pip install kitchen
)
sed -i 's/https\:\/\/www.marcus-ipasus.com\/woeihwiki/https\:\/\/ipasusfan.org\/ipasuswiki/g' *
Import the dump
Import the dump by running the import script under maintenance, see [2]:
php importDump.php ~/wikidump/marcus_ipasuscom_woeihwiki-20190922-wikidump/marcus_ipasuscom_woeihwiki-20190922-history.xml
Do yourself a favor and switch the look of user interface from the default vector to monobook.
Host the slides and transcripts
You can download the slides from archive.org:
mkdir /var/www/html/ipasuswiki/slides
unzip mppodcastslides.zip -d /var/www/html/ipasuswiki/slides
mkdir /var/www/html/ipasuswiki/transcripts
wget "https://archive.org/compress/woeihpodcast201/formats=TEXT%20PDF&file=/woeihpodcast201.zip"
unzip woeihpodcast201.zip -d /var/www/html/ipasuswiki/transcripts
Enjoy!