This is the installation manual for Cylcos 4 PRO. Be aware that Cyclos is server side software. End users (customers) will be able to access Cyclos directly with a webbrowser or mobile phone. If you have any problems when installing Cyclos using this manual, you can ask for help at our forum.
Cyclos can be installed on a tomcat server or inside a docker container. If you want to have a quick preview of Cyclos it is easier to use the docker container (especially on Linux). Chapter "Install Cyclos using Tomcat" explains how to install Cyclos using a normal tomcat server and chapter "Install Cyclos as a Docker image" explains how to install Cyclos using docker.
You can check if you have Java installed at this site: http://java.com/en/download/installed.jsp If you don't have Java 8 installed proceed with the steps below:
Linux (Ubuntu)
Windows
echo %CLASSPATH%
echo %PATH%
echo %JAVA_HOME%
Windows
psql -U postgres
Linux
echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" \ | sudo tee /etc/apt/sources.list.d/postgresql.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.4 postgresql-contrib-9.4 postgresql-9.4-postgis-2.1 \ postgresql-9.4-postgis-2.1-scripts
sudo -u postgres psql
Setup cyclos4 database (common steps for windows and Linux)
CREATE USER cyclos WITH PASSWORD 'cyclos';
CREATE DATABASE cyclos4 ENCODING 'UTF-8' TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE cyclos4 to cyclos;
\c cyclos4 create extension cube; create extension earthdistance; create extension postgis; create extension unaccent;
Make sure tomcat is working on port 8080 of the local machine (if you don't run Tomcat as root/admin make sure that the user has write access to the webapps directory)
cyclos.datasource.jdbcUrl = jdbc:postgresql://localhost/cyclos4 cyclos.datasource.user = cyclos cyclos.datasource.password = cyclos
* Some systems do not resolve localhost and the default postgress port directly. In case of database connectivity problems you might try a URL: cyclos.datasource.jdbcUrl = jdbc:postgresql://local_ip_address:postgressport/cyclos4 example: cyclos.datasource.jdbcUrl = jdbc:postgresql://192.168.1.1:5432/cyclos4
** Windows might not see linebreaks in the property file, if this is the case we advice you to download an more advanced text editor such as Notepad++.
*** In windows problems might occur in the Cyclos versions 4.1, 4.1.1, 4.1.2 and 4.2. It can help to set the cyclos.tempDir variable manual. Point it to the temp directory inside the WEB-INF directory in Cyclos. E.g. "cyclos.tempDir = C:\Program Files\Tomcat7\webapps\cyclos\WEB-INF\temp". In some cases even forward slashes need to be used.
An example of an error that sometimes occurs is "WARN RequestContextFilter – Couldn’t write on the temp directory". In this case the user that started tomcat doesn’t have the write permission. This can be modified in Linux by executing the following commands as root (normally the name of the user is tomcat):
chown -R tomcat /var/lib/tomcat7/webapps/cyclos
chmod -R 755 /var/lib/tomcat7/webapps/cyclos
In case you locked yourself out of the system, see paragraph "Maintenance" for how to reset the admins password.