Install nginx php-fpm magento 2

Install nginx php-fpm magento 2

Install nginx php-fpm magento 2 Setup dedicated server or Amazon ec2 instance for magento 2. Install nginx, php-fpm and MySql server and setup virtual host configuration. Installation of server. $sudo apt-get update $sudo apt-get install nginx -y Installing php, php-fpm supported extension for magento 2 sudo apt-get -y update sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get -y update sudo apt-get -y install php5 php5-mhash php5-mcrypt php5-curl php5-cli php5-mysql php5-gd php5-intl php5-xsl Installing MySql 5.6 apt-add-repository ppa:ondrej/mysql-5.6 apt-get -y update apt-get -y install mysql-server If you get error : Sub-process /usr/bin/dpkg returned an error code (1) Increase the memory limit of swap Create a 4G swap file: sudo fallocate -l 4G /swapfile Change its permission to only root could access and change: sudo chmod 600 /swapfile Make it swap: sudo mkswap /swapfile Activate: sudo swapon...
Create user on AWS ec2 instance Linux

Create user on AWS ec2 instance Linux

Create user on AWS ec2 instance Linux Create a user for providing access to other developer or use for virtual host in linux. It will also use for providing limited access for user like only read access, read or write access etc. $sudo adduser aman It will ask for new password for the user aman. Note: this password is used to login password for the user when you are using terminal. Granting permission for user aman $sudo visudo Add below mentioned line in the file #User privilege for aman aman ALL=(ALL:ALL) ALL And press CTRL+X for exit, it will ask for save modified changes, Y for the saving modified file. Creating user authorisation to the sever with public key. $su aman $cd home/aman $ssh-keygen -b 1024 -f aman -t dsa $mkdir .ssh $chmod 700 .ssh $cat aman.pub > .ssh/authorized_keys $chmod 600 .ssh/authorized_keys $sudo chown aman:ubuntu .ssh $sudo chown aman:ubuntu .ssh/authorized_keys Note: In above step aman is user and ubuntu is the defult user group. Now you need to download the key “aman” and use it for connecting ssh or...