Today we will install PHP 5.6 on Amazon Linux 2 OS. Step 1: First we need to install the dependencies: 1 > sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2 3 > wget https://repo.ius.io/ius-release-el7.rpm 4 5 > sudo rpm -Uvh ius-release*.rpm Step 2: So all dependencies are …
Read MoreIn this blog, Today we will create a script that will help us to copy latest files from FTP server and paste it to another server (FTP client server) using WinSCP Script. So, lets start the process. Step 1: For this, We first need to install WinSCP on our clinet server. To install WinSCP, Please click on the link. Step …
Read MoreIn this blog, we will create a Powershell script, which will copy latest files from AWS S3 to paste it in local. So, lets start the process. Note: For this script, we need to install AWS CLI on local Windows machine and we need configure IAM user credentials with S3 get and put object permission. Step 1: Create IAM …
Read MoreToday we will learn, How to Deploy "Lambda@Edge" from Lambda console. Lets start the implementation: Step 1: Go to your Lambda function. Step 2: From Designer, Click on "Add Trigger". Step 3: Select "cloudfront" from the trigger. Step 4: Click on "Deploy to Lambda@Edge". Step 5: Now, You have to enter your CloudFront …
Read MoreToday we will learn, How to Deploy "Lambda@Edge" from cloudfront console. Lets start the implementation: Step 1: Open CloudFront console, and Select your CloudFront Distributions. Step 2: In your CloudFront Distributions, Select "Behaviors" tab. Step 3: Select your "default" Behaviors and Click on "edit". Step 4: From …
Read MoreIn this blog, we will create a script in AWS Lambda which will help viewer request points to your root URL (http://www.example.com) instead of to a specific object in your distribution (http://www.example.com/index.html). Note: It will help mainly in Hugo and other Serverless website hosting on AWS environment. Lets …
Read MoreToday we will see, how to resolve the error "mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.". This error you may see, when you try to run MySQL in safe-mode. 1: create a mysqld Directory in /var/run Directory. 1mkdir -p /var/run/mysqld 2: change the ownership of that folder: 1chown …
Read MoreToday we will learn how to provide root permission to your SSH user. So, We can provide SSH user root permission either move them in root user group or We can add simple line in sudoers file to provide root permission. Lets use the first method. Provide ROOT permission to this user by move it to root user. 1usermod -aG …
Read MoreToday I will show you, how can you create you private and public key using ssh-keygen command. Connect to you Linux system. Open Linux terminal. Run below command to generate keys. 1ssh-keygen -t rsa -b 2048 Enter the name of the key and press Enter Now private and public key has been generated. Now you can use those …
Read MoreToday I will show you, how can you get SSH private key from AWS console and convert that key into public key. So, that you can use that key for create a SSH user. So, First lets with downloading a key from AWS Console. To create your key pair. Please follow the below steps: Open the Amazon EC2 console at …
Read More