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
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
- 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:
- if you want MediaWiki 1.18 (stable):
- or if you want the development trunk:
-
svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/ wikidata - in that case, you'll also need to run
maintenance/update.php
-
- go into your Apache's DocumentRoot (such as "/var/www" or "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs") and execute either:
- Checkout a copy of the latest "Wikidata" extension
- from the previous folder, go into wikidata/extensions/ and execute:
- You can rename these directories, though you will want to adapt LocalSettings.php if you do.
Configuring Wikidata
- Download the following files:
- http://www.omegawiki.org/downloads/omegawiki-latest.sql.gz - OmegaWiki database, latest version (generated daily)
- http://www.omegawiki.org/downloads/rights.sql - script to setup access to the database
- http://www.omegawiki.org/downloads/user.sql - script to create a user account
- http://www.omegawiki.org/downloads/LocalSettings.sample - sample configuration file
- 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)
- Create a database named 'omegawiki' (for example) and load the dump omegawiki-latest.sql into it.
-
mysql -h localhost -u root -ppass -e"CREATE DATABASE omegawiki;;" -
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...
-
php maintenance/rebuildall.php[1]
-
- 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;;"
-
- Copy the LocalSettings.sample into your wikidata folder in Apache's Documentroot as LocalSettings.php and edit it (see inline comments for help).
- Copy wikidata/extensions/Wikidata/LocalApp.php.sample to wikidata/extensions/Wikidata/LocalApp.php.
- 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" );
- UNIX:
- 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.