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](https://mark.the-fennells.org/wp-content/uploads/2014/07/16-300x248.png)
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](https://mark.the-fennells.org/wp-content/uploads/2014/07/22-300x248.png)
Click OK.
![Welcome to the Railo installer.](https://mark.the-fennells.org/wp-content/uploads/2014/07/31-300x248.png)
Click Next.
![Railo License Agreement](https://mark.the-fennells.org/wp-content/uploads/2014/07/41-300x248.png)
Choose “I accept…”
Click Next.
![Installation Directory](https://mark.the-fennells.org/wp-content/uploads/2014/07/52-300x248.png)
Install to opt/railo
Click Next.
![Set Railo Administrator Password](https://mark.the-fennells.org/wp-content/uploads/2014/07/61-300x248.png)
Set Railo Administrator password
Click Next.
![Choose Tomcat Ports](https://mark.the-fennells.org/wp-content/uploads/2014/07/72-300x248.png)
Choose your ports. I chose 8000 for the Tomcat Web Server Port.
Click Next.
![Set the Tomcat System User](https://mark.the-fennells.org/wp-content/uploads/2014/07/82-300x248.png)
Set the Tomcat System User to railo, which we created at the beginning of this post.
Click Next.
![Set Tomcat to Start at Boot](https://mark.the-fennells.org/wp-content/uploads/2014/07/9-300x248.png)
Start at boot? Yes
Click Next.
![Set Apache Connector](https://mark.the-fennells.org/wp-content/uploads/2014/07/10-300x248.png)
Install Apache Connector? No
Click Next.
![Ready to Install](https://mark.the-fennells.org/wp-content/uploads/2014/07/111-300x248.png)
Ready to Install
Click Next to complete the install.
![Installation Progress Screen](https://mark.the-fennells.org/wp-content/uploads/2014/07/121-300x248.png)
The installation progress screen will run for a few minutes.
![Installation Completed](https://mark.the-fennells.org/wp-content/uploads/2014/07/131-300x248.png)
Open the Welcome Screen? Yes
Click Finish
![Railo Administration](https://mark.the-fennells.org/wp-content/uploads/2014/07/141-300x248.png)
After the Railo Welcome Screen loads, scroll down and click on the Server Administrator link.
![Enter the Railo Administrator Password](https://mark.the-fennells.org/wp-content/uploads/2014/07/151-300x248.png)
Login using the password created when you installed Railo.
Navigate to the Datasource page.
![Railo Datasource](https://mark.the-fennells.org/wp-content/uploads/2014/07/171-300x248.png)
In the “Create New Datasource” section, enter the name of your new datasource, set the type to MySQL and click Create.
![Datasource Configuration](https://mark.the-fennells.org/wp-content/uploads/2014/07/18-300x248.png)
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](https://mark.the-fennells.org/wp-content/uploads/2014/07/19-300x248.png)
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
You must be logged in to post a comment.