Vous êtes sur la page 1sur 3

WeTravel Map Generator Tutorial

This few steps describes how to put Map generator for WeTravel to work.

For Linux:

1.)Install Java Runtime (JRE)


-you can download and install JRE from www.java.com or try find packages in your Linux
distribution's repository (for Fedora it's package with name OpenJDK)

2.) Download XAMPP for Linux (LAMPP) from this link:


http://www.apachefriends.org/download.php?xampp-linux-1.7.2.tar.gz
(This tutorial is maded and tested with version 1.7.2. To check newer version, please go to official
website of XAMPP: http://www.apachefriends.org/en/xampp.html)

3.) Installing XAMPP for Linux(LAMPP)


-removing of previous MySQL daemons is needed

1.Open terminal and login as root


$ su
2.Extract downloaded XAMPP archive
# tar xvfz xampp-linux-1.7.2.tar.gz -C /opt

Because XAMPP is only for 32-bit systems(for this time), we must made some changes to make it
working on 64-bit system. That may be different for each Linux distribution. For Fedora 11 64-bit
worked procedures on this forum: http://forums.fedoraforum.org/showthread.php?t=226841
For other distributions search the web.

4.) Run LAMPP with this command(as root):


# /opt/lampp/lampp start

5.) Creating new database for WeTravel


1.Open this URL: http://localhost/phpmyadmin/ in your favorite web browser
2.Insert name for database - "wetravel"
3.Change Collation to "utf8_unicode_ci" (like in picture below)

Setup of MySQL database for WeTravel


6.)Setup of the WeTravel Map Generator
1.Download and extract latest WT Map Generator from official website:
http://we-travel.co.cc/joomla/
2.Run generator with this command:
$ java -jar WeTravel_Mapgenerator.jar -WTRUN -LOG
-for easier running you can make shell script
3.Open File->Properties from menu (not needed when generator start first time)
4.Select folders for map data source and generated maps
5.Setup MySQL database (like in picture below):
Host: localhost
Name: wetravel
User: root
Pass: <empty>

Setup of WeTravel Map generator

7.)Increasing memory usage of MySQL to speed up database operations (optional)


1.Run text editor (gedit, kate,...) as root and open file: /opt/lampp/etc/my.cnf
2.Find and change following values(consider amount of your RAM!):

a) innodb_buffer_pool_size = <from 50% to 80% of you RAM>

-for example: for system with 2GB RAM there can be value from 1000M to 1600M
so the line will look like this: innodb_buffer_pool_size = 1000M

b) innodb_log_file_size = <25% of innodb_buffer_pool_size>

-for example: if is innodb_buffer_pool_size = 1000M then the line will look


like this: innodb_log_file_size = 250M

c) innodb_flush_log_at_trx_commit = 0

-set the value to 0


d) max_allowed_packet = 32M

-this setting is under line [mysqldump]

3.Restart LAMPP with this command(as root): /opt/lampp/lampp restart

8.) Ready for generating maps ;-)

Author: Prescott
E-Mail: prescott66@gmail.com
Tutorial was maked and tested on Fedora Linux 11 64-bit

Vous aimerez peut-être aussi