Last active
February 7, 2017 00:14
-
-
Save davemkirk/9718474 to your computer and use it in GitHub Desktop.
WebPageTest Server Setup - Ubuntu 12.04 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update -y | |
apt-get install apache2 -y | |
apt-get install php5 libapache2-mod-php5 -y | |
/etc/init.d/apache2 restart | |
apt-get install php5-gd -y | |
apt-get install php5-curl -y | |
apt-get install ffmpeg -y | |
apt-get install libjpeg-progs -y | |
apt-get install libimage-exiftool-perl -y | |
apt-get install unzip -y | |
wget https://github.com/WPO-Foundation/webpagetest/releases/download/2.13/webpagetest_2.13.zip | |
mkdir /home/webpagetest | |
mkdir /home/webpagetest/www | |
mkdir /home/webpagetest/log | |
mkdir ~/webpagetest | |
unzip webpagetest_2.13.zip -d ~/webpagetest | |
mv ~/webpagetest/www/* /home/webpagetest/www/ | |
rm -f -r ~/webpagetest/ | |
chmod 766 /home/webpagetest/www/tmp | |
chmod 766 /home/webpagetest/www/results | |
chmod 766 /home/webpagetest/www/work/jobs | |
chmod 766 /home/webpagetest/www/work/video | |
chmod 766 /home/webpagetest/www/logs | |
rm -r /var/www | |
ln -s /home/webpagetest/www /var/www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment