Developing a Mura CMS v6 site locally with cfenv!

Developing a Mura CMS v6 site locally with cfenv!

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…

Expectations

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.

Run Railo

Now let’s start the Railo server to begin developing our new project.

$ railo_init

Create Datasource

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.

Click on Datasource on the left menu under Services.

create the datasource

Proceed with giving it a name, and type.
Click create.
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.
Otherwise, it’s:

  • 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!
Enjoy!

2 Comments

  1. Matt Levine · November 8, 2013 Reply

    Nice post! One thing that I’d like to point out is that you can download the current version of Mura from the following cleaner URL

    http://getmura.com/currentversion/

    Thanks,
    Matt

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax