Skip to content

Instantly share code, notes, and snippets.

@joeainsworth
Created October 6, 2017 14:31
Show Gist options
  • Save joeainsworth/b522724f18e3f01f50b7979a9962224e to your computer and use it in GitHub Desktop.
Save joeainsworth/b522724f18e3f01f50b7979a9962224e to your computer and use it in GitHub Desktop.
Install PHP7, Nginx, RVM, Ruby on Amazon Linux AMI
sudo yum groupinstall 'Development Tools'
sudo yum install nginx -y
sudo yum install php71 -y
sudo yum install php71-fpm -y
sudo nano /etc/nginx/conf.d/default.conf
sudo nano /etc/php-fpm.d/www.conf
sudo chkconfig nginx on
sudo chkconfig php-fpm-71 on
sudo service nginx start
sudo service php-fpm start
sudo yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel ruby-devel gcc-c++ jq git
sudo curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://get.rvm.io | bash -s stable --ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment