Difference between revisions of "Talk:Install a MediaWiki codebase"
(Add bash commands) |
|
(No difference)
|
Latest revision as of 14:12, 4 January 2012
BASH commands
This is currently an overview of the process. <bash> version=1.11.0 documentroot=/var/www
mirror=http://download.wikimedia.org/mediawiki/1.11/
- 1) Download MediaWiki
cd $documentroot if [ ! -e mediawiki-${version}.tar.gz ] then
wget --proxy ${mirror}/mediawiki-${version}.tar.gz
fi
- 2) Unpack and remove
tar -zxvf mediawiki-${version}.tar.gz rm mediawiki-${version}.tar.gz cd $documentroot/mediawiki-${version} chmod a+w config
- 3) Remove extensions directory and create symbolic link
rm -rf extensions ln -s /var/www/extensions extensions
- 4) Follow the configuration instructions on the wikipage $domain/${wikidir}
cat <<EOF ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. Now its time to configure your MediaWiki installation at: ${htdocs}/${wikidir} Using a web browser, follow the instructions at: http://$domain/${wikidir} When you have finished type: y ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. EOF finished=N while [ $finished != "y" ] do
echo "Press 'y' when you have configured MediaWiki" read finished
done
- 5) Move default LocalSettings.php from /wiki/config into /wiki
cd ${htdocs}/mediawiki-${version} mv ./config/LocalSettings.php . echo "include('extensions/wikia.php');" >> LocalSettings.php chmod 600 ${htdocs}/${wikidir}/config </bash>