Installing Confuence on EC2 Red Hat
Asked by Robert Lauriston:

I installed atlassian-confluence-5.1.4-x64.bin on Red Hat 6.4 on EC2 using the Express Install option. Confluence is starting automatically wityout errors:

```
Jul 03, 2013 6:13:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.Jul 03, 2013 6:13:40 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.Jul 03, 2013 6:13:40 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.Jul 03, 2013 6:13:40 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.Jul 03, 2013 6:13:40 PM org.apache.coyote.http11.Http11Protocol initINFO: Initializing Coyote HTTP/1.1 on http-8090Jul 03, 2013 6:13:40 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 3247 msJul 03, 2013 6:13:40 PM org.apache.catalina.core.StandardService startINFO: Starting service Tomcat-StandaloneJul 03, 2013 6:13:40 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/6.0.352013-07-03 18:13:55,753 INFO [main] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.1.4 [build 4249 based on commit hash 84a11b3502ae79dd6028856f37ff89838963c1cc]Jul 03, 2013 6:14:23 PM org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote HTTP/1.1 on http-8090Jul 03, 2013 6:14:23 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 42855 ms
```

I've created a custom rule for port 8090 / 0.0.0.0/0 in the instance's security group, but I don't get any response at http://\<*public**DNS name for instance*\>:8090. I know the public DNS name I'm using is correct since I can ssh to it.

Maybe I need to modify the Confluence base URL? How do I do that at the command line?


Answers:
author: Robert Lauriston
body: I had to run system-config-firewall-tui to customize the Red Hat firewall to allow HTTP and tcp over port 8090.


author: codelahoma
body: Thanks for taking the time to post your solution.


author: Robert Lauriston
body: Some additional notes on this:

Installation on t1.micro failed because it was too small, started over with m1.small.  

Before creating instance, create key pair so you have the locally stored portion of the key. and edit security group to enable ssh.  

Once instance has initialized open a terminal.  

cd to directory with .pem key file  

ssh -i \<file\>.pem ec2-user@\<public DNS name for EC2 instance\>  

sudo sh  

yum install system-config-firewall-tui  

system-config-firewall-tui

- select customize, enable tcp over port 8090  

cd /tmp

Download the .bin file for the appropriate installer, e.g.:

wget [www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.1.4-x64.bin\&version=5.1.4\&usertype=trial](http://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.1.4-x64.bin&version=5.1.4&usertype=trial)  

Once download is complete, make executable and run:  

chmod a+x atlassian-confluence-5.1.4-x64.bin

Run the installer:  

./atlassian-confluence-5.1.4-x64.bin  

<br />


Tags: aws

install

linux