Difference between revisions of "Installation"
Jump to navigation
Jump to search
(init) |
(added group permissions for Discussion) |
||
Line 14: | Line 14: | ||
** copy the secret and app ID into LocalSettings.php | ** copy the secret and app ID into LocalSettings.php | ||
** make sure $wgGroupPermissions is set properly | ** 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 | |||
<pre> | |||
$wgGroupPermissions['approved']['editmain'] = true; | |||
$wgNamespaceProtection[NS_MAIN] = array( 'editmain' ); | |||
</pre> | |||
* remember to use Special:UserRights to add 'approved' users |
Revision as of 08:42, 13 September 2020
- 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
$wgGroupPermissions['approved']['editmain'] = true; $wgNamespaceProtection[NS_MAIN] = array( 'editmain' );
- remember to use Special:UserRights to add 'approved' users