This page you are viewing is part of the SEVA Wiki Archive, Please visit the new Official Website!
NOTICE: Visit the Maillist page for help joining the new google groups email list, the old maillist is no more.
SEVA meetings are held every second Tuesday.


User:WikiAdmin

From SeattleEVA
Revision as of 04:16, 14 January 2006 by Rjf (talk | contribs) (link to mainmenu)
Jump to navigation Jump to search

Seattle EVA


DigiPen

A restricted wiki setup...

Setup Notes

New Files

extensions/Flash.php
skins/DPSkin11.php
skins/DPSkin21.php
skins/DPSkin31.php
skins/dpskin11
skins/dpskin31
skins/common/images/dpwiki.png

Modified Files

includes/SpecialWatchlist.php   ( Select All )
includes/ImagePage.php          ( file history for Users Only )
includes/SkinTemplate.php       ( call new TopBar function )
includes/Skin.php               ( TopBar, NewsTicker, Nesting )
languages/Language.php          ( sitesubtitle )
skins/common/cologneblue.css    ( sidebars )
skins/monobook/main.css         ( sidebars )
skins/MonoBook.php              ( Nesting Top-Sidebar )
skins/CologneBlue.php           ( Nesting )
skins/Standard.php              ( Nesting )
  1. Might need to start sql on the Mac like this...
mysqladmin shutdown -uroot -p
/bin/sh /usr/bin/mysqld_safe --user=mysql --skip-networking --old-passwords &
  1. Trash a retired user account.
mysql -uroot -p mysql
mysql> SELECT * FROM user;
mysql> DELETE FROM user where User="bad_user";
  1. Trash an old/test database.
mysqladmin -u root -p drop wikidbtest
  1. New Initialize and Import a new database and user!
  2. make sure new_db.spl is in the local directory.
mysql -uroot -p
mysql> create database new_db;
mysql> use new_db;
mysql> source new_db.sql;
mysql> use mysql;
mysql> SELECT * FROM user;
mysql> GRANT SELECT, INSERT, DELETE, UPDATE
    -> ON new_db.* TO db_user@localhost
    -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;

LocalSettings.php

<?php

# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.

$IP = "/SomePath";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "includes/DefaultSettings.php" );

# If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '80M' );

if ( $wgCommandLineMode ) {
        if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
                die( "This script must be run from the command line\n" );
        }
} elseif ( empty( $wgNoOutputBuffer ) ) {
        ## Compress output if the browser supports it
        if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}

$wgSitename         = "www2.digipen.edu";

$wgScriptPath       = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";

## If using PHP as a CGI module, use the ugly URLs
#$wgArticlePath      = "$wgScript/$1";
# $wgArticlePath      = "$wgScript?title=$1";
$wgArticlePath      = "/main/$1";

$wgStylePath        = "$wgScriptPath/skins";
$wgStyleDirectory   = "$IP/skins";
$wgLogo             = "$wgStylePath/common/images/dpwiki.png";

$wgUploadPath       = "$wgScriptPath/images";
$wgUploadDirectory  = "$IP/images";

$wgEnableEmail = true;
$wgEnableUserEmail = true;

$wgEmergencyContact = "it@digipen.edu";
$wgPasswordSender       = "it@digipen.edu";

## For a detailed description of the following switches see
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
include('extensions/Flash.php');
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;

$wgDBserver         = "localhost";
$wgDBname           = "som_dbname";
$wgDBuser           = "some_user";
$wgDBpassword       = "some_pass";
$wgDBprefix         = "prefix_";

# If you're on MySQL 3.x, this next line must be FALSE:
$wgDBmysql4 = true;

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgEnableUploads                = true;
$wgUseImageResize               = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgMimeDetectorCommand= "file -bi"; # use external mime detector (linux)
$wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg', 'doc', 'xls', 'ppt', 'pdf', 'wmv', 'avi', 'mov', 'swf' );
$wgVerifyMimeType = false;
#$wgUseCopyrightUpload = true;
#$wgCheckFileExtensions = false;
#$wgStrictFileExtensions = false;

# Upload error
# Warning: Wrong parameter count for print_r() in /var/www/html/wiki/includes/Exif.php on line 528

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
# $wgUseTeX                     = true;
$wgMathPath         = "{$wgUploadPath}/math";
$wgMathDirectory    = "{$wgUploadDirectory}/math";
$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";

$wgLocalInterwiki   = $wgSitename;

$wgLanguageCode = "en";

$wgProxyKey = "some_key_string";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
# $wgDefaultSkin = 'monobook';
$wgDefaultSkin = 'dpskin31';

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3";

 # Custom Settings http://meta.wikimedia.org/wiki/Preventing_Access
 # This disables user registration, admins can still register users.
 $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
 #
 # This disables anonymous edits
 #
 # Permission keys given to users in each group.
 # All users are implicitly in the '*' group including anonymous visitors;
 # logged-in users are all implicitly in the 'user' group. These will be
 # combined with the permissions of all groups that a given user is listed
 # in in the user_groups table.
 # This replaces wgWhitelistAccount and wgWhitelistEdit
 # The following line should be commented, otherwise these settings will
 # throw away the settings on DefaultSettings.php (you probably don't want this).
 # With this line commented you will only overwrite the settings you explicitly
 # define here (that's what you probably want).
 #$wgGroupPermissions = array(); # SEE THIS IN includes/DefaultSettings.php
 $wgGroupPermissions['*'    ]['createaccount']   = false;
 $wgGroupPermissions['*'    ]['read']            = true;
 $wgGroupPermissions['*'    ]['edit']            = false;
 #
 # Make the site non-readable
 # Pages anonymous (not-logged-in) users may see
 # $wgWhitelistRead = array ("Main Page", "Special:Userlogin", "Wikipedia:Help");
 # $wgGroupPermissions['*'    ]['read']            = false;
 # $wgBlacklistRead = array ("User:someuser", "User:otheruser"); # This does nothing.
 #
 # To prevent a special page from being listed at Special:Specialpages,
 # edit SpecialPage.php and change the relevant entry to be an instance of
 # UnlistedSpecialPage instead of SpecialPage. 
 $wgShowIPinHeader = false;
 # Don't show Categories for anonymous users
#  $wgUseCategoryMagic             = false;

# This will cache static pages for non-logged-in users to reduce
#  $wgUseFileCache = true;

# Use article validation feature; turned off by default
#$wgUseValidation = true;
#$wgValidationForAnons = true ;

# $wgAuth = null;

# $wgSearchForwardUrl = 'http://www.google.com/search?q=$1';

# Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
# $wgDisabledActions = array();

?>