As an anonymous user, you can only add new data. If you would like to also modify existing data, please create an account and indicate your languages on your user page.

Help:Installing WikiLexicalData with an existing database

From OmegaWiki
Jump to: navigation, search

The following procedure describes how to install WikiLexicalData if you want to start with a dump of a database. To install from scratch, see Help:Installing from scratch.


  1. Checkout a copy of MediaWiki
    • go into your Apache's DocumentRoot (such as "/var/www" or "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs") and execute either:
  2. Checkout a copy of the latest "WikiLexicalData" extension
  3. Go to Special:Version and determine which other extensions are needed to get the functionality of OmegaWiki wiki pages, and install them in the same way as above. Currently, these are: Babel, Cite, Gadgets, Imagemap, Parserfunctions, Polyglot, SyntaxHighligh_GeSHi, UniversalLanguageSelector, and of course WikiLexicalData.

You can rename these directories, though you will want to adapt LocalSettings.php if you do.

Configuring WikiLexicalData[edit]

  1. Download the following files:
  2. Uncompress the dump omegawiki-latest.sql.gz you downloaded. This should create a omegawiki-latest.sql file. (In an unix-like environment this step can be skiped if you have little disk space available; see below)
  3. Create a database named 'omegawiki' (for example) and load the dump omegawiki-latest.sql into it.
    1. mysql -h localhost -u root -p -e"CREATE DATABASE omegawiki;;"
    2. mysql -h localhost -u root -p omegawiki < omegawiki-latest.sql (alternatively you can do some pipe magic if you are in an unix-like environment: zcat omegawiki-latest.sql.gz | mysql -h localhost -u root -p omegawiki)
      • this step lasts several hours... be patient...
    3. php maintenance/rebuildall.php [1]
  4. Run rights.sql as root to create a user for the database (the user will be called 'omegawiki'), and user.sql file to create a user account. The user will be called 'Admin' with the password 'admin!'. Login and change your password if this is a public webserver!
    • mysql -h localhost -u root -p -e"use omegawiki;; source rights.sql;; source user.sql;;"
  5. Copy the LocalSettings.sample into your wikidata folder in Apache's Documentroot as LocalSettings.php and edit it (see inline comments for help).
  6. If you are installing on a Windows version of Apache, you will have to change the path separators in line 11 of LocalSettings.php from colons (:) to semicolons (;):
    • UNIX: ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
    • Windows: ini_set( "include_path", ".;$IP;$IP/includes;$IP/languages" );
  7. Finishing touches: download omegawiki.png into your wikidata/images/ directory, or use your own logo instead!

Visit the wiki and you should have a working copy of OmegaWiki! You may have to restart your computer for PHP and mySQL to cooperate.

If omegawiki is not working after that, run php on index.php in wikidata folder from a command line to check error messages and correct your LocalSettings.php. You can also delete the file to verify that the enviroment is well set for MediaWiki. Accessing index.php from your browser should offer you to create a new wiki and run some tests.