How to Deploy Cyclos 4

You can have a Cyclos instance up and running within minutes using the one-click install options for both free and PRO Cyclos 4 versions correspondingly:

Note: For using the PRO version (widget below), you must buy a valid Cyclos license, while a free license can be obtained after registration at license.cyclos.org.

The process is simple - just click Get it hosted now, type your email and install Cyclos in a minute skipping the manual installation steps.

Tip: Also, the automated installation package for Cyclos 4 PRO is available directly in the dashboard via the Marketplace:

Cyclos 4 marketplace

Alternatively, follow the instructions below on manual deployment.

Create Environment

1. Log into the platform dashboard and click the New Environment button.

new environment

2. In the environment topology window, select Tomcat as your application server and PostgreSQL as a database.

Note: Ensure that your topology satisfies the Cyclos 4 requirements.

topology wizard

When ready, provide your environment name (e.g., cyclos) and click Create.

3. It will take just a minute for your environment to be created.

Cyclos environment

Upload Cyclos Package

1. To download the Cyclos package, navigate to license.cyclos.org and login (register).

download Cyclos

Click the Download Cyclos 4.x button to download the latest package.

2. Extract the files from the downloaded .zip archive and go to the cyclos-4.x/web folder inside.

Cyclos web folder

3. Add the content of this web directory to a separate archive (e.g., Cyclos4.zip) and upload it to the Deployment Manager.

upload Cyclos

4. Once the package is on the platform, deploy it to the environment you have just created.

deploy Cyclos

Database Configuration

1. Click the Open in Browser button next to your PostgreSQL database to open the phpPgAdmin panel.

open PostgreSQL

2. Login with the credentials you’ve received via email after the environment creation and create a new PostgreSQL database.

create database

3. In the opened window, specify the database Name (e.g., cyclos4), Template (template0), and Encoding (UTF8).

create database parameters

Click Create to proceed.

4. Enter your database by clicking its name and switch to the SQL tab. Execute the following simple SQL code to create the required extensions:

1
2
3
4
5
create extension cube;
create extension earthdistance;
create extension postgis;
create extension unaccent;
create extension pgcrypto;

execute SQL

Uncheck the Paginate results property and click the Execute button.

Cyclos Configuration

1. Switch back to the platform dashboard and click the Config button for your Tomcat server.

Tomcat configuration files

2. Navigate to the /opt/tomcat/webapps/ROOT/WEB-INF/classes folder and create a new cyclos.properties file.

create Cyclos properties

3. Copy content of the cyclos-release.properties file from the same folder. Paste it to the newly created cyclos.properties file and make the following additional adjustments to connect to your PostgreSQL:

  • cyclos.datasource.dataSourceClassName - JDBS class for PostgreSQL (it is specified by default - org.postgresql.ds.PGSimpleDataSource)
  • cyclos.datasource.dataSource.portNumber - database connection port (5432)
  • cyclos.datasource.dataSource.serverName - host to access database (from the email)
  • cyclos.datasource.dataSource.databaseName - database name (created in the previous section, cyclos4)
  • cyclos.datasource.dataSource.user - database user (from the email)
  • cyclos.datasource.dataSource.password - database password (from the email)

database connection data

4. Save the changes and Restart Tomcat to apply them.

restart Tomcat

5. When Tomcat is started, open your environment in the browser.

Note: Starting up Cyclos for the first time might take some time due to the database initialization.

Cyclos authentication

Congratulations! Now, you have your Cyclos application up and just need to complete authentication to start working!

What’s next?