Cumbers:Wikimedia install notes: Difference between revisions
John Cumbers (talk | contribs) No edit summary |
John Cumbers (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
==cumberswiki== | ==cumberswiki== | ||
==to make short names== | ==to make short names== | ||
Line 20: | Line 19: | ||
$wgArticlePath = "$wgScriptPath/$1"; | $wgArticlePath = "$wgScriptPath/$1"; | ||
from: http://db.glug-bom.org/wiki/index.php/Setup_a_MediaWiki | |||
==Customisation | ==Customisation== | ||
All customisation entries go into the LocalSettings.php file in the wiki root (/var/www/html/wiki). Add the entries to the end of the file or make changes wherever necessary. | All customisation entries go into the LocalSettings.php file in the wiki root (/var/www/html/wiki). Add the entries to the end of the file or make changes wherever necessary. | ||
==Logo | ==Logo== | ||
Create a folder in the webserver document root and place your logo image there. Set $sgLogo in LocalSettings.php to the path of your logo image. 125x125 pixels is the ideal size for the image | Create a folder in the webserver document root and place your logo image there. Set $sgLogo in LocalSettings.php to the path of your logo image. 125x125 pixels is the ideal size for the image | ||
$wgLogo = "/image/logo.png"; | $wgLogo = "/image/logo.png"; | ||
==Creating a second wiki instance== | |||
To create a second wiki on the same webserver, simply create a new directory (say wiki2) in the document root. lndir the /opt/mediawiki to the new directory, assign the appropriate permissions to directories and visit the wiki (http://localhost/wiki2) for configuration. Make sure that the database name, user(?) and table prefix are different for this wiki. |
Revision as of 17:22, 25 March 2006
cumberswiki
to make short names
Edit .htaccess or httpd.conf from here
1) A. Add the following to your .htaccess in your document root directory:
Options FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
2) Then edit LocalSettings.php
In your LocalSettings.php edit $wgArticlePath as follows:
$wgArticlePath = "$wgScriptPath/$1";
from: http://db.glug-bom.org/wiki/index.php/Setup_a_MediaWiki
Customisation
All customisation entries go into the LocalSettings.php file in the wiki root (/var/www/html/wiki). Add the entries to the end of the file or make changes wherever necessary.
Logo
Create a folder in the webserver document root and place your logo image there. Set $sgLogo in LocalSettings.php to the path of your logo image. 125x125 pixels is the ideal size for the image
$wgLogo = "/image/logo.png";
Creating a second wiki instance
To create a second wiki on the same webserver, simply create a new directory (say wiki2) in the document root. lndir the /opt/mediawiki to the new directory, assign the appropriate permissions to directories and visit the wiki (http://localhost/wiki2) for configuration. Make sure that the database name, user(?) and table prefix are different for this wiki.