Last active
August 29, 2015 13:58
-
-
Save clifff/10287063 to your computer and use it in GitHub Desktop.
Private WPT setup
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
wpt_server=YOUR_PUBLIC_DNS wpt_location=EC2-WPT |
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
[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" |
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
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 |
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
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 |
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
# 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