Difference between revisions of "User:Djgreen/MediaWiki: Engr Installation"
Jump to navigation
Jump to search
m |
m (→Upgrading) |
||
| (17 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | ==Installing 1.6.7== | + | ==Installing 1.6.7/8== |
#Unpack the files into the intended directory. | #Unpack the files into the intended directory. | ||
#Create a database called mediawiki_<nameofsite>, and a corresponding useraccount | #Create a database called mediawiki_<nameofsite>, and a corresponding useraccount | ||
| Line 8: | Line 8: | ||
#Create your '''AdminSettings.php''' from AdminSettings.sample | #Create your '''AdminSettings.php''' from AdminSettings.sample | ||
#Create your '''LocalSettings.php''' file (use template below -- be sure to adjust for the site) | #Create your '''LocalSettings.php''' file (use template below -- be sure to adjust for the site) | ||
| − | <pre> | + | <pre><?php |
| − | <?php | ||
# This file was automatically generated by the MediaWiki installer. | # This file was automatically generated by the MediaWiki installer. | ||
| Line 25: | Line 24: | ||
if( !ini_get( 'zlib.output_compression' ) ) @ob_start ( 'ob_gzhandler' ); } | if( !ini_get( 'zlib.output_compression' ) ) @ob_start ( 'ob_gzhandler' ); } | ||
| − | $wgSitename = " | + | $wgSitename = "ECE ASIC"; |
| − | |||
| − | $wgScriptPath = "/ | + | $wgScriptPath = "/asic/wiki"; |
| − | $wgScript = "$wgScriptPath/index.php"; | + | $wgScript = "{$wgScriptPath}/index.php"; |
| − | $wgRedirectScript = "$wgScriptPath/redirect.php"; | + | $wgRedirectScript = "{$wgScriptPath}/redirect.php"; |
| − | $wgArticlePath = "/ | + | $wgArticlePath = "{$wgScriptPath}/index/$1"; |
| − | $wgStylePath = "$wgScriptPath/skins"; | + | $wgStylePath = "{$wgScriptPath}/skins"; |
| − | $wgStyleDirectory = "$IP/skins | + | $wgStyleDirectory = "{$IP}/skins"; |
| − | |||
| − | $wgUploadPath = "$wgScriptPath/files-wiki"; | + | $wgLogo = "{$wgStylePath}/common/images/mediawiki.png"; |
| − | $wgUploadDirectory = "$IP/files-wiki"; | + | |
| + | $wgUploadPath = "{$wgScriptPath}/files-wiki"; | ||
| + | $wgUploadDirectory = "{$IP}/files-wiki"; | ||
$wgVerifyMimeType = false; | $wgVerifyMimeType = false; | ||
| Line 46: | Line 45: | ||
$wgEmergencyContact = "ecehelp@ncsu.edu"; | $wgEmergencyContact = "ecehelp@ncsu.edu"; | ||
| − | $wgPasswordSender | + | $wgPasswordSender = "ecehelp@ncsu.edu"; |
## For a detailed description of the following switches see | ## For a detailed description of the following switches see | ||
| Line 122: | Line 121: | ||
?> | ?> | ||
</pre> | </pre> | ||
| − | #Fill the tables -- run ./update.php from the maintenance folder. You'll need to use a cmdline PHP to do so (so basedir doesn't come into affect), so I suggest running from CHRONOS. You'll note the $IP line in LocalSettings.php with the fullpath -- this is required to run the update.php cmd. Run from the root of the wiki site. | + | #:Fill the tables -- run ./update.php from the maintenance folder. You'll need to use a cmdline PHP to do so (so basedir doesn't come into affect), so I suggest running from CHRONOS. You'll note the $IP line in LocalSettings.php with the fullpath -- this is required to run the update.php cmd. Run from the root of the wiki site. |
| − | <pre>sudo /root/env_wrapper /opt/php5/bin/php -q /afs/eos/engrwww/ece/asic/wiki/maintenance/update.php | + | <pre>sudo /root/env_wrapper /opt/php5/bin/php -q /afs/eos/engrwww/ece/asic/wiki/maintenance/update.php</pre> |
| − | </pre> | + | #:Create folder "files-wiki" -- give the Engr Servers write access in there. This will be the file upload folder. |
| − | #Create folder "files-wiki" -- give the Engr Servers write access in there. This will be the file upload folder. | ||
| Line 131: | Line 129: | ||
| − | ==Upgrading | + | ==Upgrading== |
#'''BACKUP''' both the DB and the folder. | #'''BACKUP''' both the DB and the folder. | ||
| + | #Read the UPGRADE and RELEASE-NOTES in the new version. | ||
| + | #Copy the new files OVER the old ones, replacing. | ||
| + | #Copy back: | ||
| + | <pre> | ||
| + | * The LocalSettings.php file | ||
| + | * The AdminSettings.php file, where it exists | ||
| + | * The extensions directory | ||
| + | * The images directory | ||
| + | * Custom skins | ||
| + | * Custom upload directories | ||
| + | </pre> | ||
| + | #Run "update.php" after. | ||
| + | #Run "refreshLinks.php" after. | ||
Latest revision as of 17:23, 25 February 2007
Installing 1.6.7/8
- Unpack the files into the intended directory.
- Create a database called mediawiki_<nameofsite>, and a corresponding useraccount
- User account needs create, select, insert, update, delete, lock tables on the DB.
- Autoinstaller isn't going to work, so don't even bother.
- Use tables.sql in the maintenance folder to create the initial database table structures.
- Be sure to remove all references to /*$wgDBprefix*/ within the file before trying to run it.
- Create your AdminSettings.php from AdminSettings.sample
- Create your LocalSettings.php file (use template below -- be sure to adjust for the site)
<?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 = ".";
require_once( "includes/DefaultSettings.php" );
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 = "ECE ASIC";
$wgScriptPath = "/asic/wiki";
$wgScript = "{$wgScriptPath}/index.php";
$wgRedirectScript = "{$wgScriptPath}/redirect.php";
$wgArticlePath = "{$wgScriptPath}/index/$1";
$wgStylePath = "{$wgScriptPath}/skins";
$wgStyleDirectory = "{$IP}/skins";
$wgLogo = "{$wgStylePath}/common/images/mediawiki.png";
$wgUploadPath = "{$wgScriptPath}/files-wiki";
$wgUploadDirectory = "{$IP}/files-wiki";
$wgVerifyMimeType = false;
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgShowIPinHeader = false; # For non-logged in users
$wgEmergencyContact = "ecehelp@ncsu.edu";
$wgPasswordSender = "ecehelp@ncsu.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 $wgEnotifUserTalk = true;
# UPO $wgEnotifWatchlist = true;
# UPO $wgEmailAuthentication = true;
$wgDBserver = "";
$wgDBname = "";
$wgDBuser = "";
$wgDBpassword = "";
$wgDBprefix = "";
# 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;
# taken from the webpage
$wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg','xls','ppt','pdf','eps','gif' );
$wgUseImageResize = true;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";
## 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 = "[EDITED]";
## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'monobook';
$wgDiff3 = "/usr/bin/diff3";
# server
$wgServer = 'http://www.wolftech.ncsu.edu';
# 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();
$wgGroupPermissions['*' ]['createaccount'] = false;;
$wgGroupPermissions['*' ]['read'] = true;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['bureaucrat']['renameuser'] = true;
$wgInterwikiMagic = true;
?>
- Fill the tables -- run ./update.php from the maintenance folder. You'll need to use a cmdline PHP to do so (so basedir doesn't come into affect), so I suggest running from CHRONOS. You'll note the $IP line in LocalSettings.php with the fullpath -- this is required to run the update.php cmd. Run from the root of the wiki site.
sudo /root/env_wrapper /opt/php5/bin/php -q /afs/eos/engrwww/ece/asic/wiki/maintenance/update.php
- Create folder "files-wiki" -- give the Engr Servers write access in there. This will be the file upload folder.
Upgrading
- BACKUP both the DB and the folder.
- Read the UPGRADE and RELEASE-NOTES in the new version.
- Copy the new files OVER the old ones, replacing.
- Copy back:
* The LocalSettings.php file * The AdminSettings.php file, where it exists * The extensions directory * The images directory * Custom skins * Custom upload directories
- Run "update.php" after.
- Run "refreshLinks.php" after.