Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description: (Pending)

Tomcat, Apache, Fedora 4, ubuntu, load balancer


Installation steps:


  1. Create Ubuntu t2.small or larger instance in EC2.

    1. Create instance: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance_linux.html

    2. Open 80 or 8080 port

    3. update OS:
      > sudo apt-get update
      > sudo apt-get upgrade -y

  2. Install Java & maven

    1. sudo apt-get install default-jre -y

    2. sudo apt-get install default-jdk -y

    3. sudo apt-get install maven -y

  3. Install Tomcat

    1. sudo apt-get install tomcat7 -y

    2. sudo apt-get install tomcat7-admin -y

    3. config tomcat manager: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access 


  1. Install Apache

    1. sudo apt-get install apache2

  2. Installing and configuring mod_jk

    1. sudo apt-get install libapache2-mod-jk

    2. sudo vim /etc/tomcat7/server.xml

uncomment the following line

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

  1. sudo vim /etc/apache2/workers.properties
    # Define 1 real worker using ajp13

worker.list=worker1

# Set properties for worker (ajp13)

worker.worker1.type=ajp13

worker.worker1.host=localhost

worker.worker1.port=8009

  1. sudo vim /etc/apache2/mods-available/jk.conf
    change the JkWorkersFile property to /etc/apache2/workers.properties

  2. sudo vim /etc/apache2/sites-enabled/000-default.conf
    <VirtualHost *:80>

.......................................

.......................................

JkMount /fcrepo4* worker1

</VirtualHost *:80>

  1. Install Fedora 4
    https://wiki.duraspace.org/display/FF/Deploying+Fedora+4#DeployingFedora4-DeployingwithTomcat7


  1. Cluster configuration:
    https://wiki.duraspace.org/display/FF/Deploying+a+Fedora+Cluster#DeployingaFedoraCluster-DeployinginAWS

 

  1. Create load balance in EC2

http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/gs-ec2VPC.html