# Setting up the essentials as a non-ROOT user

{% hint style="warning" %}
You must be logged in as a normal user to setup the required configuration.
{% endhint %}

## Installing the Apache HTTP server

1. Open the URL: <http://httpd.apache.org/download.cgi#apache22> and

   download **Apache HTTP Server 2.2.31** source distribution (httpd-

   2.2.31.tar.gz).

{% hint style="info" %}
Apache 2.4+ versions are not compatible with the latest Mod\_JK Tomcat connectors. Hence, Apache 2.2+ versions are preferred. If you would like to explore using 2.4+ versions, please refer to fixes suggested by Jonathan\_Morgan in <https://forums.adobe.com/thread/1318544>.
{% endhint %}

&#x20;2\. Unzip the file in the stage location:

```
gunzip -d httpd-2.2.31.tar.gz
tar xvf httpd-2.2.31.tar
```

&#x20;3\. Build the binaries from the source.

```
./configure --prefix=/ua1001/cloudio/apache
make
make install
```

{% hint style="info" %}
Prefix specifies the custom directory **PREFIX** where the Apache HTTPD is to be installed.
{% endhint %}

&#x20;4\. Open the Apache config file and edit the port number as required.

```
/conf/httpd.conf
```

&#x20;5\. Start the server as a non-ROOT user.

```
PREFIX/bin/apachectl -k start
```

&#x20;6\. Open the URL: <http://httpd.apache.org/download.cgi#apache22> to verify Apache Test Page is accessible.

&#x20;7\. Shutdown Apache.

```
PREFIX/bin/apachectl -k stop
```

{% hint style="info" %}
If the prefix is not given, then the server is installed in the usr/apache system directory.
{% endhint %}
