Skip to content
Snippets Groups Projects
Select Git revision
  • 5cb405b57fac4d2e7d9c8969b1bdd2f71aee32fa
  • master default protected
  • integration
  • pm-zipp
  • revert-4f266893
  • clmc-service
  • clmc-tutorial
  • workshop-demo
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.1
  • 2.3.0
  • 2.2.2
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.2
28 results

install-apache.sh

Blame
  • install-apache.sh 1.64 KiB
    #!/bin/bash
    #/////////////////////////////////////////////////////////////////////////
    #//
    #// (c) University of Southampton IT Innovation Centre, 2017
    #//
    #// Copyright in this software belongs to University of Southampton
    #// IT Innovation Centre of Gamma House, Enterprise Road,
    #// Chilworth Science Park, Southampton, SO16 7NS, UK.
    #//
    #// This software may not be used, sold, licensed, transferred, copied
    #// or reproduced in whole or in part in any manner or form or in or
    #// on any media by any person other than in accordance with the terms
    #// of the Licence Agreement supplied with the software, or otherwise
    #// without the prior written consent of the copyright owners.
    #//
    #// This software is distributed WITHOUT ANY WARRANTY, without even the
    #// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    #// PURPOSE, except where stated in the Licence Agreement supplied with
    #// the software.
    #//
    #//      Created By :            Michael Boniface
    #//      Created Date :          23/01/2018
    #//      Created for Project :   FLAME
    #//
    #/////////////////////////////////////////////////////////////////////////
    
    # Install apache
    sudo apt-get update
    sudo apt-get -y install apache2
    
    TEST_VIDEO="20180212104221flame-project-full.mp4"
    TEST_VIDEO_ARCHIVE=$TEST_VIDEO".gz"
    DEST_DIR="/var/www/html/" 
    DEST_FILE=$DEST_DIR"/"$TEST_VIDEO_ARCHIVE
    
    # Copy files for MPEG-DASH testing
    curl "ftp://ftp.it-innovation.soton.ac.uk/testdata/video/"$TEST_VIDEO_ARCHIVE --user flame-rw:DR8ngj3ogSjd8gl -o $DEST_FILE
    tar -xvf $DEST_FILE -C /var/www/html/
    
    rm -rf $DEST_FILE
    mv $DEST_DIR"/"$TEST_VIDEO $DEST_DIR"/"test_video
    
    # start apache
    apachectl -k start
    apachectl -k restart