Talk:Install a MediaWiki codebase

From Organic Design

BASH commands

This is currently an overview of the process. <bash> version=1.11.0 documentroot=/var/www


  1. 1) Download MediaWiki

cd $documentroot if [ ! -e mediawiki-${version}.tar.gz ] then

 wget --proxy ${mirror}/mediawiki-${version}.tar.gz


  1. 2) Unpack and remove

tar -zxvf mediawiki-${version}.tar.gz rm mediawiki-${version}.tar.gz cd $documentroot/mediawiki-${version} chmod a+w config

  1. 3) Remove extensions directory and create symbolic link

rm -rf extensions ln -s /var/www/extensions extensions

  1. 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


  1. 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>