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 11 installed proceed with the steps below:
Linux (Ubuntu)
Windows
echo %CLASSPATH%
echo %PATH%
echo %JAVA_HOME%
Linux
sudo apt install postgresql postgis
sudo -u postgres psql
Windows
psql -U postgres
Setup cyclos4 database (common steps for Windows and Linux)
CREATE USER cyclos WITH ENCRYPTED PASSWORD 'cyclos-password';
CREATE DATABASE cyclos4 ENCODING 'UTF-8' TEMPLATE template0 OWNER 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)
The list of reserved words is:
cyclos.gwt fonts js pay consent classic ui .well-known robots.txt sitemap.xml sitemap-index.xml sitemap.xstl network-information-id.html activate-access-client external-redirect-callback identity run content web-rpc java-rpc api sms push-notifications global redirect mobile-redirect
Of course it is also possible to run Cyclos directly under the domain name. This can be done by extracting Cyclos in the (<tomcat_home>/ROOT) directory (remove all files on it first), or putting an Apache web server in front of the Tomcat serer.
cyclos.datasource.jdbcUrl = jdbc:postgresql://localhost/cyclos4 cyclos.datasource.user = cyclos cyclos.datasource.password = cyclos
* Some systems do not resolve localhost and the default PostgreSQL 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, in case of problems, you can 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\Tomcat8.5\webapps\instance_name\WEB-INF\temp". In some cases even forward slashes need to be used.
chown -R tomcat9 /var/lib/tomcat9/webapps/ROOT
chmod -R 755 /var/lib/tomcat9/webapps/ROOTdelete from database_lock;