About this wiki

From Federal Burro of Information
Jump to navigationJump to search


Default install plus:


$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>';

$wgFavicon = "/images/8/83/Favico.ico";



June 2018

  • extention updates
  • add words install
  • AMP extentions setup
  • structured data ( as per G webmster tools recommend)

October 2019 update

certbot cert expired on amazon2 instance.

I could not gor the life of me get the new cerbot client to work on amazon 2 . A bit of googling sohwed me that i was not alone and that others are having similar problems. so in a classic IAC style , I _just_ swapped my os to ubuntun 18 and it worked.

note that htere are some thing s that still ned work , for example i just learn that google pagespeed service is no longer, the software ( aopache module ) stl lexists.

and I need to install it https://www.modpagespeed.com/doc/download

April 2020

certbot autorenewal

12 23 *   *   *     /usr/bin/certbot renew

How to Backup

Two parts: files and DB


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

further reading