# Red Hat Based Images

Create an EC2 instances from an Ortus BoxLang engine (Red Hat Enterprise Linux 8) AMI (Amazon Machine Image). We have created several based Red Hat based images.

| Images                  | Status               |
| ----------------------- | -------------------- |
| BoxLang MiniServer      | :white\_check\_mark: |
| BoxLang with CommandBox | :white\_check\_mark: |

## Software and tools installed matrix

On every Red Hat based Cloud Server you will find software or tools to achieve best experience with our solutions. This software include:

| **Tool name**                     | **Version installed** | **BoxLang MiniServer**             | **BoxLang with CommandBox**           |
| --------------------------------- | --------------------- | ---------------------------------- | ------------------------------------- |
| CommandBox                        | latest                | :white\_check\_mark:               | :white\_check\_mark:                  |
| BoxLang runtime                   | latest                | :white\_check\_mark:(As OS binary) | :white\_check\_mark:(Into CommandBox) |
| BoxLang MiniServer (As OS binary) | latest                | :white\_check\_mark:               | :x:                                   |
| ColdBox Application               | latest                | :white\_check\_mark:               | :white\_check\_mark:                  |

Due these Cloud Servers are Red Hat Enterprise Linux (RHEL) for AWS based, you can follow this [link](https://aws.amazon.com/marketplace/pp/prodview-k5skpyd62jg22?sr=0-3\&ref_=beagle\&applicationId=AWSMPContessa) to know more about base software running.

## Environment variables

| **Variable**             | **Default value**    | **Description**                                      |
| ------------------------ | -------------------- | ---------------------------------------------------- |
| BOXLANG\_HOME            | `/root/.boxlang`     | Directory where BoxLang place configs and modules    |
| COMMANDBOX\_HOME         | `/root/.commandbox`  | Directory where CommandBox place configs and modules |
| BOXLANG\_TARGET\_VERSION | `latest`             | BoxLang version installed and to be used for BoxLang |
| BVM\_HOME                | `/usr/local/boxlang` | BoxLang Version Manager home                         |

## Default site

For every Linux based BoxLang Cloud Server a Systemd daemon is used to get up and running a Web Server on well know HTTP port 80/TCP. Depending of the server flavor this can be started using BoxLang MiniServer or CommandBox. If you want to start a custom site or application, you can update this daemon service if need it, or just only place your custom site or application under `/web/boxlang-site/wwwroot` directory.

| Server                  | Red Hat like                                                                                           | Debian like                                                                                            | Daemon name        |
| ----------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------ |
| BoxLang MiniServer      | `boxlang-miniserver --host 0.0.0.0 --port 80 --webroot /web/boxlang-site/wwwroot --rewrites index.cfm` | `boxlang-miniserver --host 0.0.0.0 --port 80 --webroot /web/boxlang-site/wwwroot --rewrites index.cfm` | boxlang-miniserver |
| BoxLang with CommandBox | `/bin/box server start serverConfigFile=server.json`                                                   | `/usr/local/bin/box server start serverConfigFile=server.json`                                         | coldbox-site       |

{% hint style="info" %}
If you only place your custom site under `/web/boxlang-site/wwwroot` remember to delete their content before in order to remove the sample ColdBox Application
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cloud-servers.ortusbooks.com/aws/redhat-based-images.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
