Commons:Monuments database/Setup
Jump to navigation
Jump to search
This pages describes how to setup your own instance of the monuments database.
Prerequisites
[edit]A server with a LAMP stack
Python2Python-mysql package
Accounts
[edit]- Create a normal useraccount. This will later be used to run the bot and/or api under
- Create a mysql account and give it a database we can put the data in.
- Create a bot account here on Commons/Wikipedia
Basic login
[edit]- Login with the account
- Setup a
.my.cnf
in the homedir:
[client] user = "<username>" password = "<password>" host= "<hostname>"
- chmod 700 .mycnf
Pywikipedia
[edit]- Install pywikipedia (linkie) in ~/pywikipedia/ (svn co http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia ~/pywikipedia/)
- Make a user-config.py
- Test with login.py . You might want to setup more sources
Erfgoedbot
[edit]- Check out erfgoedbot (svn co https://svn.toolserver.org/svnroot/p_erfgoed/erfgoedbot)
- Modify the monuments_config.py to use the right database and server
Setup mysql tables
[edit]- Check out api
- Setup mysql tables
- Setup api
- Setup other tools
Monuments database | ||
---|---|---|
ErfgoedBot
|