Restoring this site

From MattWiki
Jump to: navigation, search

This how-to assumes your using Apache & mySQL.

Setting up the Server

Install needed dependency

yum install apache mysql-server

Setting up the Math Plugin

The math plugin requires a few programs before you may use it.

yum install dvipng dvipng tex-preview

Rebuilding the Math Plugin

If you need to rebuild texvc, you will need to install the following:

yum install ocaml gcc

Then go into the plugin's folder and run:

cd extensions/Math/math

Configuring the Server

  • In /etc/httpd/conf/httpd.conf:
<VirtualHost *:80>
   CustomLog logs/ combined
   ErrorLog logs/
   DocumentRoot /var/www/
   Redirect permanent /index.php
   <IfModule mod_alias.c>
      Alias /google56b8b97126d914ee.html  /var/www/
      Alias /sitemap.xml       /var/www/
      Alias /sitemaps          /var/www/
      Alias /images            /var/www/
      Alias /skins             /var/www/
      Alias /robots.txt        /var/www/
      Alias /favicon.ico       /var/www/
      Alias /index.php         /var/www/
      Alias /load.php          /var/www/
      Alias /                  /var/www/
   <Directory "/var/www/">
     AllowOverride None
     AddType text/plain .html .htm .shtml .php
     php_admin_flag engine off
   <IfModule mod_expires.c>
     ExpiresActive On
     ExpiresDefault "access plus 2 month"
     ExpiresByType text/html "access plus 1 day"
     ExpiresByType text/css "access plus 2 month"
     ExpiresByType image/gif "access plus 2 month"
     ExpiresByType image/jpg "access plus 2 month"
     ExpiresByType image/jpeg "access plus 2 month"
     ExpiresByType image/png "access plus 2 month"
     ExpiresByType image/ico "access plus 2 month"
     ExpiresByType image/  "access plus 2 month"
     ExpiresByType text/javascript "access plus 2 month"
     ExpiresByType application/x-javascript "access plus 2 month"



git clone

Google Analytics Extension

Google AdSense Extension

Open Search XML

OpenSearch adds the possibility to have search suggestions in OpenSearch XML format

git clone


The Poem extension makes a text a separate paragraph, with
after every line, i.e., it suppresses reformatting of a single newline to a blank space.

SyntaxHighlight GeSHi

This extension adds the <syntaxhighlight> tag to present formatted source code.

Confirm Edit

### Confirm Edit ###
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
//require_once( "$IP/extensions/ConfirmEdit/ReCaptcha.php");
$wgCaptchaClass = 'SimpleCaptcha';
#$wgCaptchaClass = 'ReCaptcha';
#$wgReCaptchaPublicKey = 'Public Key Goes Here';
#$wgReCaptchaPrivateKey = 'Private Key Goes Here';
$wgCaptchaTriggers['edit']          = true;
$wgCaptchaTriggers['create']        = true;
$wgCaptchaTriggers['addurl']        = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin']      = true;
$wgGroupPermissions['*'            ]['skipcaptcha'] = false;
$wgGroupPermissions['user'         ]['skipcaptcha'] = true;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;
$wgGroupPermissions['bot'          ]['skipcaptcha'] = true; // registered bots
$wgGroupPermissions['sysop'        ]['skipcaptcha'] = true;


Cite adds <ref[ name=id]> and <references/> tags, for citations

require( "extensions/Cite/Cite.php" );


Not Used at this time

#require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
$wgSpamBlacklistFiles = array(

SyntaxHighlight GeSHi

This extension adds the <syntaxhighlight> tag to present formatted source code.


User Merge and Delete

require_once( "$IP/extensions/UserMerge/UserMerge.php" );
$wgGroupPermissions['bureaucrat']['usermerge'] = true;


require( "$IP/extensions/OggHandler/OggHandler.php" );
#$wgFFmpegLocation = '/usr/bin/ffmpeg';
$wgOggThumbLocation = '/usr/local/bin/oggThumb';


WikiEditor is an extendable framework with a set of feature-based modules that improve the user experience of editing.

git clone