I want to start by saying… I’ve been using cfenv for my projects now for the past two days and am loving it tremendously. It’s so nice to not have to worry about downloading and configuring railo express versions for each and every app I’m running. I can choose which version of Railo I want to run on a per-project basis or globally for the entire system. Anyway…
- You must know how to create an empty database.
- You should have already installed CFENV. (https://github.com/joshuairl/cfenv)
- Know what a Terminal is.
Let’s get started.
We’re going to open up Terminal (or cygwin on Windows)
Install a Railo Version with CFENV
Let’s install a version of Railo globally (if you haven’t already done so in a previous installation guide).
Going to start by listing out the available versions since I cannot remember what my options are…
$ cfenv install -l Available versions: 3.0.2.001 3.0.3.000 3.3.3.001 4.0.4.001 4.1.1.000 4.1.1.009
Let’s go with the latest (4.1.1.009)
$ cfenv install 4.1.1.009
Our Project Directory
Create our project directory if we don’t already have it and change into that directory.
$ mkdir -p ~/Projects/my_mura_project $ cd ~/Projects/my_mura_project
Let’s set our local project directory Railo version to 4.1.1.009 for good measure.
This will ensure our mura project always runs in our consistent Railo 4.1.1.009 because that’s what this particular cms will be running in production.
$ cfenv local 4.1.1.009
Download Mura CMS v6
Now, we still have an empty project directory.
Let’s download and extract the latest Mura CMS version.
$ curl -L --output muracms.zip http://getmura.com/currentversion/ $ tar -zxvf muracms.zip
For good measure, we will remove the muracms.zip file.
$ rm muracms.zip
Create a Database
You’re going to need a database / datasource for Mura to work correctly so open up MySQL or your favorite SQL database system and create one now.
Don’t worry… I’ll wait…
Once you’ve done that, make sure you know the db name, server, user, and password of the database so we can create the datasource.
Now let’s start the Railo server to begin developing our new project.
Open up Railo’s Admin Panel in your web browser. http://localhost:8888/railo-context/admin/web.cfm
Setup a password for this web context since it’s your first time running.
Make it easy so you don’t have to sweat it later… this is only development after all.
Datasource on the left menu under
Proceed with giving it a name, and type.
Then finish setting it up by entering the server, db name, username, and password of the database in their respective fields and then save & verify it.
Finish Mura Setup
Browse to your webroot at http://localhost:8888/ and fill in the form with the settings above.
You only need to enter the Datasource Name, Super Admin User, Super Admin Password, and Admin Email.
Click ‘Save Settings’
Now click ‘Login to Mura’
Enter your Super Admin Username / Password if you changed it from the default.
- Username: admin
- Password: admin
Shutting down the app
When you are finished developing for the day, you can CTRL+C on the Terminal window that is running Railo.
This should shut everything down and clear your RAM / CPU.
You’re all set!