Difference between revisions of "Installation"

From Jesse's Wiki
Jump to navigation Jump to search
Line 18: Line 18:


<pre>
<pre>
$wgGroupPermissions['approved']['editmain'] = true;
#for short URLs (don't forget to edit .htaccess)
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/w/$1";
 
$wgGroupPermissions['approved']['editmain'] = true;  
$wgNamespaceProtection[NS_MAIN] = array( 'editmain' );
$wgNamespaceProtection[NS_MAIN] = array( 'editmain' );
$wgCapitalLinks = false; #this stops URLs from capitalizing the first letter
</pre>
</pre>
* remember to use Special:UserRights to add 'approved' users
* remember to use Special:UserRights to add 'approved' users
Line 28: Line 35:
** Do not use root, choose a sub directory (like /w). Using root breaks api requests including visualeditor  
** 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
** copy .htaccess to directory with mediawiki and modify LocalSettings.php to include the article path
* Set <code>$wgCapitalLinks = false;</code> for URLs to not automatically cap the first letter.

Revision as of 11:07, 18 October 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

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