The application has the following prerequisites:

1. Apache webserver: 	(>=2.0)
2. PHP:			(>=5.2.5)
2.1 PHP-imap
3. MySQL:		(>=5.0.15)		
4. Java:		(>=1.5)
5. RabbitMQ:		(>=3.1.5)
http://www.rabbitmq.com/download.html
6. Apache Solr:		(>=3.6.2)
https://drupal.org/documentation/modules/search/quick-start-solr-3
7. Drush:		(>=5.0)
https://drupal.org/node/1791676

Installation instructions (for Linux):
1. Copy collatool directory to your webserver root:
	-cp [path_to_collatool_deploy]/collatool /var/www/ -R
2. Create a new database in MySQL.
	-mysql -u[username] -p
	-create database collatool;
3. Use collatool.sql script to set up your database.
	\. [path_to_collatool_deploy]/collatool.sql
4. Insert in collatool/sites/default/settings.php: database username (line 219), password (line 220) and database name (line 218).
	nano /var/www/collatool/sites/default/settings.php
5. Access application at [your_host]/collatool:
	username: admin
	password: collatool1234
6. Set up your RabbitMQ connection: [your_host]/collatool/admin/config/system/message_broker_amqp
7. Set up your Apache Solr connection: [your_host]/collatool/admin/config/search/apachesolr/settings
8. Index the existing content using Apache Solr:
	-[your_host]/collatool/admin/config/search/apachesolr -> "Queue all content for reindexing"
	-[your_host]/collatool/admin/config/search/apachesolr -> "Index all queued content"
9. Configure the application general email to listen to the incoming messages on: [your_host]/collatool/user/1/edit

10. Use drush to start listening to messages:
	-cd /var/www/collatool
	-drush consume-amqp-messages

11. Configure and run [path_to_collatool_deploy]/CollatoolSkypeMessageListener.jar to forward your skype messages:
	-Set interval in "Run every"
	-Set path to Skype in "Path to skype"
	-Set host in "Host"
	-Set port in "Port"
	-Press "Start"



