Add result handler & fix test run hanging bug
[bottlenecks.git] / rubbos / rubbos_scripts / 1-1-1 / scripts / HTTPD_install.sh
1 #!/bin/bash
2
3 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
4 source set_bottlenecks_rubbos_env.sh
5
6 echo "INSTALLING APACHE on $HOSTNAME"
7
8 echo "Adding new user apache begin"
9 useradd apache
10 groupadd apache
11 usermod -G apache apache
12 echo "Adding new user apache end"
13
14 mkdir -p $BOTTLENECKS_TOP
15 chmod 755 $BOTTLENECKS_TOP
16 mkdir -p $RUBBOS_TOP
17 chmod 755 $RUBBOS_TOP
18 mkdir -p $RUBBOS_APP
19 chmod 755 $RUBBOS_APP
20
21 # apache
22 tar zxf $SOFTWARE_HOME/$HTTPD_TARBALL --directory=$RUBBOS_APP
23 cd $HTTPD_INSTALL_FILES 
24 ./configure --prefix=$HTTPD_HOME --enable-module=so --enable-so --with-mpm=worker >/dev/null
25 make >/dev/null
26 make install >/dev/null
27
28 # mod jk
29 tar zxf $SOFTWARE_HOME/$MOD_JK_TARBALL --directory=$RUBBOS_APP
30 tar zxf $SOFTWARE_HOME/$JAVA_TARBALL --directory=$RUBBOS_APP
31 cd $MOD_JK_INSTALL_CONFIGURE
32 ./configure --with-apxs=$HTTPD_HOME/bin/apxs --enable-jni --with-java-home=$JAVA_HOME >/dev/null
33 make >/dev/null
34 make install >/dev/null
35
36 echo "APACHE IS INSTALLED on $HOSTNAME"