Installation
Jump to navigation
Jump to search
- Synology NAS
- MariaDB10 installed
- MediaWiki
- Download latest version and extract to get .tar file, upload and extract to web folder
- Configure reverse proxy or Web station to use subdomain and Apache server with latest PHP
- test connection to subdomain (configure DNS if necessary)
- acquire/register subdomain to HTTPS certificate
- Download GoogleLogin Extension
- Extract to Extensions folder
- Modify LocalSettings.php to include extension along with configurations from MediaWiki's site setup for the extension
- go to google dev console for APIs and credentials https://console.developers.google.com/apis/credentials
- create OAuth 2.0 Client ID
- authorized redirect URI is https://wiki.jjjp.ca/index.php?title=Special:GoogleLoginReturn
- copy the secret and app ID into LocalSettings.php
- make sure $wgGroupPermissions is set properly
To set so that only 'approved' users can edit and create pages, but all other users can use the Discussion feature, add this to LocalSettings.php
#for short URLs (don't forget to edit .htaccess) $wgScriptPath = ""; $wgScriptExtension = ".php"; $wgArticlePath = "/w/$1"; $wgGroupPermissions['approved']['editmain'] = true; $wgNamespaceProtection[NS_MAIN] = array( 'editmain' ); $wgCapitalLinks = false; #this stops URLs from capitalizing the first letter
- remember to use Special:UserRights to add 'approved' users
- In order to get VisualEditor working with the built in parsoid, it's incredibly important to make sure you can successfully CURL in the ssh shell. If it times out you will see CURL 28 error when editing pages. This was fixed by setting the local DNS settings.
- Configuring short urls
- use https://shorturls.redwerks.org to help
- Choose Apache and all default settings
- Do not use root, choose a sub directory (like /w). Using root breaks api requests including visualeditor
- copy .htaccess to directory with mediawiki and modify LocalSettings.php to include the article path
Installing Flow
- Download the extension (currently being renamed to StructuredDiscussions) https://www.mediawiki.org/wiki/Extension:StructuredDiscussions
- Update LocalSettings.php to load Flow
- Update the database tables using mw-config