ISFDB:Full Linux Website
Jump to navigation
Jump to search
Setting up an ISFDB webserver
1. Follow the instructions at ISFDB:Personal Linux Website. This will handle everything except the Wiki setup.
2. Install MediaWiki.
- Make sure php 5 is installed on your system.
- Download the latest version of MediaWiki, and place it in the apache directory. In a typical install this would be /var/www.
- Extract the files by executing: tar -xvf mediawiki-version.tar
- Rename the directory: mv mediawiki-version wiki
3. Modify wiki/LocalSettings.php. Make the following changes/additions:
$IP = "/var/www/wiki";
$wgSitename = "ISFDB";
$wgScriptPath = "/wiki";
$wgLogo = "$wgStylePath/common/images/isfdb.gif";
$wgEmergencyContact = "somebody@email_account.com";
$wgPasswordSender = "postmaster@your_host_name";
$wgDBserver = "localhost";
$wgDBname = "isfdb";
$wgDBuser = "root";
$wgDBpassword = "";
$wgDBprefix = "mw_";
$wgGroupPermissions['*']['edit'] = false;
$wgSpamRegex = "/\<.*style.*?(display|position|overflow|visibility|height)\s*:.*?>/i";
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://creativecommons.org/licenses/by/2.0/";
$wgRightsText = "Attribution";
$wgRightsIcon = "http://creativecommons.org/images/public/somerights20.gif";
$wgAllowExternalImages = true;
$wgServer = "http://www.isfdb2.org";
$wgExtraNamespaces[100] = "Author";
$wgExtraNamespaces[101] = "Author_talk";
$wgExtraNamespaces[102] = "Bio";
$wgExtraNamespaces[103] = "Bio_talk";
$wgExtraNamespaces[104] = "Fanzine";
$wgExtraNamespaces[105] = "Fanzine_talk";
$wgExtraNamespaces[106] = "Magazine";
$wgExtraNamespaces[107] = "Magazine_talk";
$wgExtraNamespaces[108] = "Publication";
$wgExtraNamespaces[109] = "Publication_talk";
$wgExtraNamespaces[110] = "Publisher";
$wgExtraNamespaces[111] = "Publisher_talk";
$wgExtraNamespaces[112] = "Series";
$wgExtraNamespaces[113] = "Series_talk";
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
4. Upgrade the Wiki if necessary.
- Modify AdminSettings.php with the mysql username and password
- In wiki/extensions install the ConfirmEdit extension
- cd wiki/maintenance execute: php update.php
5. Configure Nightly Processing: see ISFDB:Configure Nightly Processing