Difference between revisions of "Install a new wiki"
From Organic Design wiki
(from peerix) |
m |
||
| Line 26: | Line 26: | ||
</bash>}} | </bash>}} | ||
| − | === Creating wikia structure === | + | === Creating wikia structure automatically === |
| − | + | <bash> | |
| + | url=foo.com | ||
| + | documentroot=/var/www/ | ||
| + | mapdir=fodda | ||
| + | templatedir=template | ||
| + | version=1.11.0 | ||
| + | |||
| + | # 1) Check directories exist | ||
| + | |||
| + | if [ ! -d $documentroot/domains ] | ||
| + | then | ||
| + | mkdir $documentroot/domains | ||
| + | fi | ||
| + | |||
| + | if [ ! -d $documentroot/wikis ] | ||
| + | then | ||
| + | mkdir $documentroot/wikis | ||
| + | fi | ||
| + | |||
| + | mkdir $documentroot/wikis/$mapdir | ||
| + | |||
| + | # 2) Mapping | ||
| + | ln -s $documentroot/wikis/$mapdir $documentroot/domains/$url | ||
| + | ln -s $documentroot/mediawiki-$version $documentroot/wikis/$mapdir/wiki | ||
| + | cp -p $documentroot/wikis/$templatedir/LocalSettings.php $documentroot/wikis/$mapdir | ||
| + | cp -pR $documentroot/wikis/$templatedir/files $documentroot/wikis/$mapdir | ||
| + | </bash> | ||
Revision as of 02:20, 2 June 2008
| Install a new wiki Organic Design procedure |
- Add a wiki database
- cp -pR template
- create a LocalSettings.php and set ownership to www-data so they can be filesync'd if you like
- Make sure benders password is removed from LocalSettings.php, it should only be in Wikia.php
- extensions and sets (GeneralExtensions.php and WikiWebExtensions.php)
- include order (specialpages first)
- packages
- examples and templates of settings files
- create symlinks to the new wiki from the necessary domains
- ln -s /var/www/wikis/foo /var/www/domains.foo.com
File structure
Creating wikia structure automatically
<bash> url=foo.com documentroot=/var/www/ mapdir=fodda templatedir=template version=1.11.0
- 1) Check directories exist
if [ ! -d $documentroot/domains ] then
mkdir $documentroot/domains
fi
if [ ! -d $documentroot/wikis ] then
mkdir $documentroot/wikis
fi
mkdir $documentroot/wikis/$mapdir
- 2) Mapping
ln -s $documentroot/wikis/$mapdir $documentroot/domains/$url ln -s $documentroot/mediawiki-$version $documentroot/wikis/$mapdir/wiki cp -p $documentroot/wikis/$templatedir/LocalSettings.php $documentroot/wikis/$mapdir cp -pR $documentroot/wikis/$templatedir/files $documentroot/wikis/$mapdir </bash>



