Workcloud to install Workcube on Linux and Windows servers
Workcloud; It is a web-based Workcube installation application. To install Workcube, first a website is created on your server with the /workcloud domain by cloning the Workcube installation codes via git . Workcube is installed step by step with Workcloud. You can use sudo or Powershell commands to install the Workcloud application on your server.
Installing Workcloud with Sudo Commands in Linux
Apache Configuration and Site Creation
Apache2 package installation;
- Command: apt-get update
- Command: apt-get install apache2
- Command: sudo service apache2 restart
Note: Using the package management command is installed.
Creating the site main directory;
- Command: sudo mkdir /var/www/workcloud/
- Command: sudo mkdir /var/www/workcloud/public_html/
Getting files to the site directory via git;
- Command: cd /var/www/workcloud/public_html/
- Command: git clone https://bitbucketserver@bitbucket.org/oturhan/workcloud.git .
Creating the site configuration file;
- Command: cd /etc/apache2/sites-available (Goes to the configuration folder)
- Command: sudo cp 000-default.conf workcloud.conf (Creates the site conf file
- Command: sudo nano workcloud.conf
Note: After the file named workcloud.conf is created, it is opened with nano and virtualhost is defined in it.
Then the following commands are run respectively.
- Command: a2dissite 000-default.conf (Disables the Default conf file)
- Command: a2ensite workcloud.conf (activates the workcloud.conf file)
- Command: systemctl reload apache2 (Restarts the Apache service)
Source: https://ubuntu.com/tutorials/install-and-configure-apache#4-setting-up-the-virtualhost-configuration-file
Coldfusion WS Config configuration
To configure wsconfig on Apache, use the following commands respectively is run.
- Command: cd /ColdFusion/cfusion/bin (Goes to ColdFusion main directory)
- Command: ./wsconfig -ws Apache -dir /etc/apache2/ -v
Source: https://coldfusion.adobe.com/2018/11/adventures-in-installations-installing-cf-2018-developer-edition-on-ubuntu-16-04-apache/
SSL installation and Apache SSL Configuration
pfx. After the file with extension is moved to any directory on the server, the following commands are run respectively.
- Command: openssl pkcs12 -in workcube_certificate.pfx -clcerts -nokeys -out workcube_certificate.cer
- Command: openssl pkcs12 -in workcube_certificate.pfx -nocerts -nodes -out workcube_certificate.key
- Command: mv workcube_certificate.cer /etc/ssl/certs/workcube_certificate.cer
- Command: mv workcube_certificate.key /etc/ssl/private/workcube_certificate.key
- Command: cd /etc/apache2/sites-available (goes to Configuration folder)
- Command: sudo cp 000-default-ssl.conf workcube-ssl.conf (Creates the site conf file)
- Command: sudo nano workcube-ssl.conf
After the file named domain-ssl.conf is created, it is opened with nano and inside it is the virtualhost definition as in the example below.

- Command: a2dissite 000-default-ssl.conf (Disables the Default conf file)
- Command: a2ensite fomain-ssl.conf (activates the domain-ssl.conf file)
- Command: systemctl reload apache2 (Restarts the Apache service)
- Command: sudo a2enmod ssl (Activates the Ssl module)
- Command: systemctl restart apache2
- Command: sudo ufw enable
- Command: sudo ufw status
- Command: sudo ufw allow ‘Apache’
- Command: sudo ufw allow ‘OpenSSH’
- Command: sudo ufw allow 8500/tcp
- Command: sudo ufw reload
Java Keystore Certificate Installation
- An error will occur when web service requests are made from an external site on the Linux server. To solve this problem, you should introduce your certificate to java using the keytool tool.
- After completing the SSL certificate installation process on the site, open the browser and click on the key icon to export the certificate in binary format encoded with DER.
- Download the certificate to any directory on the Linux server. Then run the following commands.
- Command: cd /ColdFusion/jre/bin
- Command: ./keytool -importcert -file /setups/certificate-file/domain_certificate_der.cer -keystore "/ColdFusion/jre/lib/security/cacerts" -alias "domain_certificate_der"
Password: The password of the certificate is entered.
Source: https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ
Source: https://stackoverflow.com/questions/4325263/how-to-import-a-cer-certificate-into-a-java-keystore
Uploading a Certificate to the Server
Transfer all certificate files on the Linux server /usr/local/share/ca-certificates/ Move it to the directory.
- Command: sudo update-ca-certificates (Moves all certificates in the directory in pem format under /etc/ssl/certs)
- Command: sudo update-ca-certificates –fresh
Source: https://manuals.gfi.com/en/kerio/connect/content/server-configuration/ssl-certificates/adding-trusted-root-certificates-to-the-server-1605.html
Add-on services to install
- Go to https://helpx.adobe.com/coldfusion/kb/coldfusion-downloads.html
- Download the add-on service file for Linux to the main directory.
- Run the file.
- Finishing the installation complete.
Note: Give /coldfusionaddonservices as the installation directory.
Windows Fonts to Linux and CF and Lucee loading
Arial, times etc. The fonts are Windows fonts and cannot be used unless they are transferred to the Linux operating system.
It is necessary to transfer Windows fonts to Linux and then introduce them from the Coldfusion admin panel.
- Copy the fonts from the windows environment C:\Windows\Fonts
- Compress the fonts as a zip file
- Go to the usr/share/fonts\truetype directory on the Linux server
- Create a folder named windows
- Command: mkdir windows
- Command: chmod -R 777 windows
- Unzip file in windows directory
- Command: unzip windows.zip
- Coldfusion Go to the server settings > font management page in the admin panel.
- Click the Browse button under the Register new fonts heading, select the windows font folder and save it.
Windows - Workcloud with PowerSheel Commands Installation
IIS Configuration and Site Creation
Creation of the site main directory;
- Command: mkdir C:/inetpub/workcloud
Go to the site directory and download the files via withdrawal;
- Command: cd C:/inetpub/workcloud
- Command: git clone git clone https://bitbucketserver@bitbucket.org/oturhan/workcloud.git
IIS Site definition;
- Command: cd C:\Windows\System32\inetsrv
- Command: add site /name:"workcloud" /bindings:http://workcloud:80 /physicalpath:"C:/inetpub/workcloud"
Coldfusion WS Config configuration
- Command: cd C:\Coldfusion\cfusion\runtime\bin
- Command: wsconfig -ws IIS -site "workcloud"
After the Workcloud application is created, you need to add the Workcloud application to your host file.
- Windows: C:\Windows\System32\drivers\etc\host
- Linux: etc/hosts
After the Workcloud application is created with the above commands, you can run the Workcloud application and install the Workcube application by going to workcloud/ via the browser.
Object Storage You can follow the steps below to add your files, such as the
Documents folder, to the object storage:
1. rclone sync -P. eu2:bucketname/folder
You can follow the steps below to mount the files in object storage:
1.sudo apt install s3fs
2.sudo echo access_key:secret_key> /etc/passwd-s3fs
3.sudo chmod 600 /etc/passwd-s3fs
4.mkdir ${HOME}/foo (create mount point)
5.s3fs foo ${HOME}/foo -o passwd_file=${HOME}/.passwd-s3fs -o url=https://domain -o use_path_request_style (mount bucket foo to ${HOME}/foo)