Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Private WPT setup
wpt_server=YOUR_PUBLIC_DNS wpt_location=EC2-WPT
[locations]
1=EC2
default=EC2
[EC2]
1=EC2-WPT_wptdriver
2=EC2-WPT
label="US East (Virginia)"
default=EC2-WPT_wptdriver
[EC2-WPT_wptdriver]
browser=Chrome,Firefox
label="US East (Virginia)"
[EC2-WPT]
browser=IE 9
label="US East (Virginia) IE"
sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y apache2 php5-gd php5-curl php-apc libapache2-mod-php5 ffmpeg imagemagick libjpeg-progs libimage-exiftool-perl sqlite3
sudo a2enmod expires
sudo a2enmod headers
sudo a2enmod rewrite
sudo a2enmod php5
wget https://github.com/WPO-Foundation/webpagetest/archive/WebPagetest-2.14.tar.gz
tar xzvf WebPagetest-2.14.tar.gz
sudo cp -r webpagetest-WebPagetest-2.14/www/* /var/www
sudo mkdir /var/www/tmp
sudo mkdir /var/www/results
sudo mkdir /var/www/work/jobs
sudo mkdir /var/www/work/video
sudo chown -R www-data /var/www/tmp
sudo chown -R www-data /var/www/results
sudo chown -R www-data /var/www/work
sudo chown -R www-data /var/www/logs
# deletes WPT results more than a day old
0 * * * * find /var/www/results/* -mmin +1440 -print0 | xargs -0 /bin/rm -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.