Media Wiki Notes

From wikidb
Jump to: navigation, search

Help

Local Settings

 /var/www/html/wiki/LocalSettings.php

Backup

 tar czf wiki20150506.tgz /var/www/html/wiki/
 
 cd ~/dbbackup
 tar czf wiki20150506.tgz /var/www/html/wiki/

Clean up

 cd /var/www/html/wiki/maintenance/
 sudo php removeUnusedAccounts.php --delete

Restart Apache

 sudo service apache2 restart

Block and Enable the Wiki

 sudo chmod /var/www/html/wiki 700
 sudo chmod /var/www/html/wiki 755

Special Pages

  • Blocked
  • List Users
  • Dead End Pages

External Access

The wiki was externally inaccessible and slow. This seems to have fixed it. It is not clear whether wgExternalServer is defined. It may be that commenting out wgServer set things up for autodetection and that worked. wgServer and wgInternalServer appear not to be the same thing. This may cause problems that I will have to fix but not today.

 /var/www/html/wiki$ diff LocalSettings.php.20170204 LocalSettings.php
     33c33,35
     < $wgServer = "http://10.0.0.9";
     ---
     > ##$wgServer = "http://10.0.0.9";
     > $wgInternalServer = "http://10.0.0.9:80";
     > $wgExternalServer = "http://63.227.219.18";

Links

Google search was: "mediawiki accessing outside LAN"

Enable Uploading Files

From /var/www/html/wiki

 sudo chown -R www-data:www-data images

Enable in LocalSettings.php

 diff LocalSettings.php LocalSettings.php.2150315 
   77c77
   < $wgEnableUploads = true;
   ---
   > $wgEnableUploads = false;

Customize Sidebar

With the admin account I gave myself administration rights