Commit 18628930 authored by Steve Weber's avatar Steve Weber
Browse files

cleanup wiki notest

parent 7e26b54b
migrate wiki
================
maintenance maintenance
------------ ===========
check: https://releases.wikimedia.org/mediawiki/ for new versions! check: https://releases.wikimedia.org/mediawiki/ for new versions! review each wiki build script. I only advice updateing the miner version number unless you need to move to a new version.
review each wiki build script. I only advice updateing the miner version number unless you need to move to a new version.
if you need access to the webinterface admin: if you need access to the webinterface admin:
changing password ```
# changing password
ssh root@wiki.math.uwaterloo.ca
cd /srv/www/wiki/<wiki>/maintenance cd /srv/www/wiki/<wiki>/maintenance
sudo -u www-data php createAndPromote.php --force --bureaucrat --sysop <yourid> sudo -u www-data php createAndPromote.php --force --bureaucrat --sysop <yourid>
sudo -u www-data php changePassword.php --user=<yourid> --password=<newpassword> sudo -u www-data php changePassword.php --user=<yourid> --password=<newpassword>
```
other migrate wiki notes
-------- ==================
...@@ -50,6 +48,7 @@ cat ~/sitedb.sql | mysql saswiki_p01 ...@@ -50,6 +48,7 @@ cat ~/sitedb.sql | mysql saswiki_p01
copy wiki static files to production wiki server copy wiki static files to production wiki server
``` ```
# put the static image files under /mnt/mediawiki_vol/wiki/newwiki/images # put the static image files under /mnt/mediawiki_vol/wiki/newwiki/images
ssh root@wiki-p01 ssh root@wiki-p01
...@@ -61,33 +60,37 @@ chown -R www-data:www-data ./images ...@@ -61,33 +60,37 @@ chown -R www-data:www-data ./images
``` ```
add a new wiki state add a new wiki state
``` ```
# adding a new wiki state # adding a new wiki state
see: salt/pillar/mfcf/service/wiki/p01.sls see: salt/pillar/math/service/wiki/p01.sls
see: salt/state/mfcf/service/wiki/p01/wiki see: salt/state/math/service/wiki/p01/wiki
run highstate on wiki server. run highstate on wiki server.
``` ```
TEST Other notes
==== ===========
links dont work when capital links dont work when capital
---------------------------- ----------------------------
set config $wgCapitalLinks off. set config $wgCapitalLinks off.
``` ```
$wgCapitalLinks = false; $wgCapitalLinks = false;
``` ```
run `CleanupCaps.php` http://www.mediawiki.org/wiki/Manual:CleanupCaps.php run `CleanupCaps.php` http://www.mediawiki.org/wiki/Manual:CleanupCaps.php
``` ```
/srv/www/wiki/thewiki# sudo -u www-data php ./maintenance/cleanupCaps.php /srv/www/wiki/thewiki# sudo -u www-data php ./maintenance/cleanupCaps.php
``` ```
NOTE manualy rerun wiki update
==== -------------------------
TODO: perhaps have salt always run update on highstate. TODO: perhaps have salt always run update on highstate.
sometimes you need to manualy rerun update, if there was a fail: sometimes you need to manualy rerun update, if there was a fail:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment