About this wiki: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(→Config) |
(→Config) |
||
Line 18: | Line 18: | ||
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number | // Replace xxxxxxx-x with YOUR GoogleAnalytics UA number | ||
// $wgGoogleAnalyticsAccount = 'UA-xxxxxxx-x'; | // $wgGoogleAnalyticsAccount = 'UA-xxxxxxx-x'; | ||
// Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAccount) | // Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAccount) | ||
$wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/tracking.js"></script>'; | $wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/tracking.js"></script>'; |
Revision as of 16:30, 26 June 2018
Config
Default install plus:
- Anonymou edit disabled.
- ConfirmAccount added.
- Extension:GraphViz added
- http://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration
More:
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'txt', 'vsd', 'ico' ); $wgGroupPermissions['*']['edit'] = false; $wgNamespacesWithSubpages = array_fill(0, 200, true);
$wgAutoSitemap["freq"] = "daily";
require_once "$IP/extensions/googleAnalytics/googleAnalytics.php"; // Replace xxxxxxx-x with YOUR GoogleAnalytics UA number // $wgGoogleAnalyticsAccount = 'UA-xxxxxxx-x'; // Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAccount) $wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/tracking.js"></script>';
Todo
- read up on http://www.mediawiki.org/wiki/Manual:FAQ#How_can_I_create_Interwiki_Links_in_my_Wiki.3F (want to play nice with other wikis, no familiar wheels here.
- install semantic wiki http://en.wikipedia.org/wiki/Semantic_MediaWiki and do some inline queries.
June 2018
- extention updates
- add words install
- AMP extentions setup
- structured data ( as per G webmster tools recommend)
How to Backup
Two parts: files and DB
/root/backupwiki.sh
#!/bin/sh cd /var/www/www.quadratic.net/secure NOW=`date +%a.%d.%b.%Y` tar zcf /data/backup/athena/athena.wiki.file.backup.$NOW.tgz wiki && echo wiki file backup done || echo wiki file backup failed mysqldump --host=localhost --user=wikiuser --password=XXX wikidb2 > /data/backup/athena/athena.wiki.sql.backup.$NOW.sql && echo wiki db backup done || echo wiki db backup failed gzip -f /data/backup/athena/athena.wiki.sql.backup.$NOW.sql
crontab -l
12 23 * * * /root/backupwiki.sh