Created
October 6, 2017 14:31
-
-
Save joeainsworth/b522724f18e3f01f50b7979a9962224e to your computer and use it in GitHub Desktop.
Install PHP7, Nginx, RVM, Ruby on Amazon Linux AMI
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 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