Skip to content

Instantly share code, notes, and snippets.

@torounit
Last active December 22, 2015 06:56
Show Gist options
  • Save torounit/85449955f458d44f74c5 to your computer and use it in GitHub Desktop.
Save torounit/85449955f458d44f74c5 to your computer and use it in GitHub Desktop.
run-httpd-as-ec2-user-for-http2
#!/usr/bin/env bash
set -e
echo '{
"nginx" : { "http2_enable" : true, "config" : { "user" : "ec2-user" } },
"php" : { "config" : { "user" : "ec2-user" } },
"hhvm" : { "enabled" : true, "config" : { "user" : "ec2-user" } },
"run_list" : [ "recipe[amimoto]" ]
}' > /opt/local/amimoto.json
/opt/local/provision
chown -R ec2-user:nginx /var/www/vhosts
sudo service hhvm restart
curl -L https://gist.githubusercontent.com/torounit/85449955f458d44f74c5/raw/0b5a72b17760d3f63386ee15ce4965040db3cc8f/run-httpd-as-ec2-user.sh | sudo bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment