Last active
December 22, 2015 06:56
-
-
Save torounit/85449955f458d44f74c5 to your computer and use it in GitHub Desktop.
run-httpd-as-ec2-user-for-http2
This file contains 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
#!/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 |
This file contains 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
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