Steps to Install Wiki Family using MediaWiki

  • #create wiki directory and provide permissions to www group to write
    • mkdir /home/users/www/new_wiki_docroot
    • chmod g+w new_wiki_docroot
  • #create three directories inside new_wiki_docroot that will hold important data
    • mkdir new_wiki_docroot/images
    • mkdir new_wiki_docroot/config
    • mkdir new_wiki_docroot/mycontent
    • chmod g+w new_wiki_docroot/images
    • chmod g+w new_wiki_docroot/config
    • chmod g+w new_wiki_docroot/mycontent
  • #create links of all the files/folders in original_wiki_docroot to the new new_wiki_docroot to trick the system into thinking that you have a fresh copy of mediawiki that you will install (make sure you provide the full path for the link, not a relative path, won’t work)
    • ln -s /home/users/www/orig_wiki_docroot/* new_wiki_docroot
  • #remove the link to the LocalSettings.php file
    • rm new_wiki_docroot/LocalSettings.php
  • #copy the configuration script file “index.php” in the config (mw-config) folder of the orig_wiki_docroot into the config folder of new_wiki_docroot
    • cp orig_wiki_docroot/mw-config/index.php new_wiki_docroot/config/
  • #create a link inside the www folder to recognize the new_wiki_docroot as the folder for the www.yoursite.com/new wiki site
    • ln -s /home/users/www/new_wiki_docroot ¬†www/new
  • #to install new wiki go to
    • www.domain.com/newwiki/config/index.php
    • #follow the instructions to create the database/tables, adminstrator, etc…
    • #make sure you provide a prefix for your tables if you plan to have more than one wiki in the same database, e.g. “new_”
  • #at the end of the steps you will be asked to save the “LocalSettings.php” file. save it in the new_wiki_docroot folder. you can modify this file to follow the permissions/restrictions you may have place on your original wiki.
  • #start using you new wiki, browse
    • www.yoursite.com/new
  • #you may want to rename the tables of the original wiki to have the orig_ prefix.
    • #if you decide to do this, make sure you add the prefix in the LocalSettings.php file.