Skip to content

Installation

hunterhacker edited this page · 4 revisions
Clone this wiki locally

Installation

Installing Corona is fairly simple, and is essentially the same on Windows, Linux, Mac, and Solaris:

  1. Download the latest Corona source and unzip it into a directory where you'd like the code to live.
  2. If you don't have a HTTP server configured in MarkLogic, create one. To create an HTTP server for Corona to live on, open your browser to the administrative port (port 8001). In the navigation on the left, click Groups -> Default -> App Servers. On this page there are a number of tabs at the top/center of the page, click on the Create HTTP tab.
  3. Enter in a name and port for the HTTP server. Set the root of the server to the directory where you put the Corona source in step 1.
  4. Scroll down a bit and set the error handler for the HTTP server to: /corona/lib/error-handler.xqy (use forward slashes even on Windows)
  5. Below the error handler, set the URL rewriter for the HTTP server to: /corona/lib/rewriter.xqy
  6. Once you've created your HTTP sever, load http://<my-sever>:<port>/config/setup.
    This script creates two new roles in the Security database: corona-dev and corona-admin.

After that you should be ready to start using Corona.

As a side note, the URL rewriter is configured in the config/endpoints.xqy file. You can change the URL structure or add in more rules if need be there.

Something went wrong with that request. Please try again.