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
Revision as of 21:14, 5 March 2012 by Kipcool (Talk | contribs)

Jump to: navigation, search

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

Installation

  1. Checkout a copy of MediaWiki
  2. Checkout a copy of the latest "Wikidata" extension
  3. You can rename these directories, though you will want to adapt LocalSettings.php if you do.

Configuring Wikidata

  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 few 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 -ppass -e"CREATE DATABASE omegawiki;;"
    2. mysql -h localhost -u root -ppass omegawiki < omegawiki-latest.sql (alternatively you can do some pipe magic if you are in an unix-like environment: gunzip omegawiki-latest.sql.gz | mysql -h localhost -u root -ppass 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 -ppass -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. Copy wikidata/extensions/Wikidata/LocalApp.php.sample to wikidata/extensions/Wikidata/LocalApp.php.
  7. 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" );
  8. 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.

Personal tools
Namespaces

Variants
Actions
Navigation
Contributing
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version