Restoring this site

From MattWiki

This how-to assumes your using Apache & mySQL.

Setting up the Server[edit | edit source]

Install needed dependency[edit | edit source]

yum install apache mysql-server

Setting up the Math Plugin[edit | edit source]

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

yum install dvipng dvipng tex-preview

Rebuilding the Math Plugin[edit | edit source]

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[edit | edit source]

  • 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"

Extensions[edit | edit source]

Vector[edit | edit source]

git clone

Google Analytics Extension[edit | edit source]

Google AdSense Extension[edit | edit source]

Open Search XML[edit | edit source]

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

git clone

Poem[edit | edit source]

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[edit | edit source]

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

Confirm Edit[edit | edit source]

### 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[edit | edit source]

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

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

SpamBlacklist[edit | edit source]

Not Used at this time

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

SyntaxHighlight GeSHi[edit | edit source]

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


User Merge and Delete[edit | edit source]

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

OggHandler[edit | edit source]

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

WikiEditor[edit | edit source]

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

git clone