azuremediawiki

Install the ParserFunctions extension

If you want to install the ParserFunctions extension on MediaWiki, please follow these steps.

  • Download the latest extension from https://www.mediawiki.org/wiki/Extension:ParserFunctions.

  • Uncompress the downloaded file in the Mediawiki extensions directory. The command below should create the ParserFunctions directory in the Mediawiki extensions directory:

      $ tar -xzf ParserFunctions-*.tar.gz -C /opt/bitnami/mediawiki/extensions
    
  • Edit the /opt/bitnami/mediawiki/LocalSettings.php file and add this code at the end of the file:

      require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
    
  • If you want to use the integrated string functionality, add just after that line:

      $wgPFEnableStringFunctions = true;
    
  • Restart the Apache server:

      $ sudo /opt/bitnami/ctlscript.sh restart apache
    
Last modification February 9, 2023