Difference between revisions of "Install a new wiki"

From Organic Design wiki
(rm windows, mv to talk)
(move script stuff to talk)
Line 15: Line 15:
 
/var/www/wikis/template/template.sql                        # MySQL dump of template database
 
/var/www/wikis/template/template.sql                        # MySQL dump of template database
 
</bash>}}
 
</bash>}}
 
=== 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>
 
[[Category:Installation]]
 

Revision as of 23:24, 24 January 2009

Procedure.svg Install a new wiki
Organic Design procedure

File structure

<bash>

/var/www/domains/tmp.peerix.org -> /var/www/wikis/template

/var/www/wikis/template/ /var/www/wikis/template/LocalSettings.php # Individual configuration /var/www/wikis/template/wiki -> /var/www/mediawiki-1.10.0/ # Symbolic link to common MediaWiki instance /var/www/wikis/template/files/ # Images filesystem hash table /var/www/wikis/template/template.sql # MySQL dump of template database </bash>