Restoring this site
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 make
Configuring the Server[edit | edit source]
- In /etc/httpd/conf/httpd.conf:
<VirtualHost *:80> ServerName wiki.mattrude.com CustomLog logs/wiki.mattrude.com.access_log combined ErrorLog logs/wiki.mattrude.com.error_log DocumentRoot /var/www/wiki.mattrude.com Redirect permanent /index.php http://wiki.mattrude.com <IfModule mod_alias.c> Alias /google56b8b97126d914ee.html /var/www/wiki.mattrude.com/google56b8b97126d914ee.html Alias /sitemap.xml /var/www/wiki.mattrude.com/sitemaps/sitemap-index-wiki.xml Alias /sitemaps /var/www/wiki.mattrude.com/sitemaps Alias /images /var/www/wiki.mattrude.com/images Alias /skins /var/www/wiki.mattrude.com/skins Alias /robots.txt /var/www/wiki.mattrude.com/robots.txt Alias /favicon.ico /var/www/wiki.mattrude.com/favicon.ico Alias /index.php /var/www/wiki.mattrude.com/index.php Alias /load.php /var/www/wiki.mattrude.com/load.php/ Alias / /var/www/wiki.mattrude.com/index.php/ </IfModule> <Directory "/var/www/wiki.mattrude.com/images"> AllowOverride None AddType text/plain .html .htm .shtml .php php_admin_flag engine off </Directory> <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/vnd.microsoft.icon "access plus 2 month" ExpiresByType text/javascript "access plus 2 month" ExpiresByType application/x-javascript "access plus 2 month" </IfModule> </VirtualHost>
Extensions[edit | edit source]
Vector[edit | edit source]
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Vector.git
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 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/OpenSearchXml.git
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 ### # http://www.mediawiki.org/wiki/Extension:ConfirmEdit 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" ); require_once("$IP/extensions/Cite/SpecialCite.php");
SpamBlacklist[edit | edit source]
Not Used at this time
#require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); $wgSpamBlacklistFiles = array( "http://meta.wikimedia.org/wiki/Spam_blacklist", "http://en.wikipedia.org/wiki/MediaWiki:Spam-blacklist" );
SyntaxHighlight GeSHi[edit | edit source]
This extension adds the <syntaxhighlight> tag to present formatted source code.
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");
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 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/WikiEditor.git