Cloud Photo

Azure Data Architect | DBA

Part 3: Railo on Fedora 20 on a Windows Host with VirtualBox

,

This is the third in a series of articles on how to install Railo (ColdFusion) and MariaDB (MySQL) on a Fedora virtual machine (VM) using VirtualBox.

 The first post discusses the creation of a Fedora VM.

The second post discusses the installation and setup of MariaDB.

In this post we will cover the installation and setup of Railo including connecting to the MariaDB datasource.

Download the 64-bit Linux Railo with Tomcat install from http://getrailo.org

This will give you the most automated install, suitable for a clean Fedora VM.

Installing Railo
Installing Railo

Create a railo user. This user will own the installation.

sudo useradd railo -p password

Then, add the webdev user to the railo user group so that webdev can create and edit Railo files.

sudo usermod -a -G railo webdev

Change permissions on the download file so that it can be executed.

chmod 755 railo-4.2.1.000-pl1-linux-x64-installer.run

Run the Railo installer.

sudo ./railo-4.2.1.000-pl1-linux-x64-installer.run

After the splash screen, choose your language.

Language Selection
Language Selection

Click OK.

Welcome to the Railo installer.
Welcome to the Railo installer.

Click Next.

Railo License Agreement
Railo License Agreement

Choose “I accept…”
Click Next.

Installation Directory
Installation Directory

Install to opt/railo
Click Next.

Set Railo Administrator Password
Set Railo Administrator Password

Set Railo Administrator password
Click Next.

Choose Tomcat Ports
Choose Tomcat Ports

Choose your ports. I chose 8000 for the Tomcat Web Server Port.
Click Next.

Set the Tomcat System User
Set the Tomcat System User

Set the Tomcat System User to railo, which we created at the beginning of this post.
Click Next.

Set Tomcat to Start at Boot
Set Tomcat to Start at Boot

Start at boot? Yes
Click Next.

Set Apache Connector
Set Apache Connector

Install Apache Connector? No
Click Next.

Ready to Install
Ready to Install

Ready to Install
Click Next to complete the install.

 

Installation Progress Screen
Installation Progress Screen

The installation progress screen will run for a few minutes.

Installation Completed
Installation Completed

Open the Welcome Screen? Yes
Click Finish

Railo Administration
Railo Administration Links

After the Railo Welcome Screen loads, scroll down and click on the Server Administrator link.

Enter the Railo Administrator Password
Enter the Railo Administrator Password

Login using the password created when you installed Railo.

Navigate to the Datasource page.

Railo Datasource
Railo Datasource

In the “Create New Datasource” section, enter the name of your new datasource, set the type to MySQL and click Create.

Datasource Configuration
Datasource Configuration

The Name of the datasource should carry over from the Create New Datasource form.
Host/Server: localhost
Database: web_db
Port: 3306
Username: railo
Password: ‘password’
Accept the defaults for now and click “create”.

Datasource Created and Verified
Datasource Created and Verified

The Datasources page should return with your new datasource listed.

Now that we Railo installed and a datasource configured, we can begin creating a ColdFusion application in the next post.

Leave a Reply