Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CiprianSpiridon/80839d0f8db05dc28635187363fc8182 to your computer and use it in GitHub Desktop.
Save CiprianSpiridon/80839d0f8db05dc28635187363fc8182 to your computer and use it in GitHub Desktop.
Install NGINX + PHP7.0 + PHP-FPM + composer + NodeJS + NPM on Amazon Linux AMI

update

sudo yum update

#install nginx sudo yum install nginx -y

#install php 7

sudo yum install php70 php70-fpm php70-mcrypt php70-xml php70-mcrypt php70-zip php70-xmlrpc php70-gd php70-curl php70-mbstring 

Add NGINX and PHP-FPM service start to boot sequence

sudo chkconfig nginx on
sudo chkconfig php-fpm on

Start NGINX and PHP-FPM service

sudo service nginx start
sudo service php-fpm start

Install Composer

cd ~
sudo curl -sS https://getcomposer.org/installer | sudo php
sudo mv composer.phar /usr/local/bin/composer
sudo ln -s /usr/local/bin/composer /usr/bin/composer

Install git

sudo yum install git

install NodeJS

cd ~
sudo yum install -y gcc gcc-c++ make openssl-devel
curl -O https://nodejs.org/dist/v6.10.2/node-v6.10.2.tar.gz
tar -xvf node-v6.10.2.tar.gz && rm node-v6.10.2.tar.gz
cd node-v6.10.2
./configure
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment