<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anish Ansari</title>
    <description>The latest articles on DEV Community by Anish Ansari (@ansarianish4).</description>
    <link>https://dev.to/ansarianish4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F323090%2F196e5d62-2fe8-4df5-8cbb-9bfa65594c29.jpg</url>
      <title>DEV Community: Anish Ansari</title>
      <link>https://dev.to/ansarianish4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ansarianish4"/>
    <language>en</language>
    <item>
      <title>Top 10 Google chrome extensions I use as backend web developer</title>
      <dc:creator>Anish Ansari</dc:creator>
      <pubDate>Sun, 30 May 2021 11:44:10 +0000</pubDate>
      <link>https://dev.to/ansarianish4/top-10-google-chrome-extensions-i-use-as-backend-web-developer-43jm</link>
      <guid>https://dev.to/ansarianish4/top-10-google-chrome-extensions-i-use-as-backend-web-developer-43jm</guid>
      <description>&lt;p&gt;Many extensions are available for chrome which helpful in any way but I am going to share what I use as a backend developer and going to explain how they are helping me speed up the daily. So let us start.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Fake Filler&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I use fake filler every day and it saves me a lot of time during development and testing. It fills the form with all inputs on a page with fake/dummy data. So you don't have to enter one by one.&lt;/p&gt;

&lt;p&gt;learn more here: &lt;a href="https://chrome.google.com/webstore/detail/fake-filler/bnjjngeaknajbdcgpfkgnonkmififhfo?hl=en"&gt;Fake Filler&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.JSON Formatter&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When I am building simple APIs or interacting with any other API and I don't want to leave chrome then JSON Formatter helps me a lot. I use this for formatting the response in the browser.&lt;/p&gt;

&lt;p&gt;learn more here: &lt;a href="https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en"&gt;JSON Formatter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Nimbus Capture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;when I finish adding a feature or I have to clarify something to the client via screenshot or screencast then Nimbus is one solution for me I feel. It is not specific to web developers but it helps me a lot.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://chrome.google.com/webstore/detail/nimbus-screenshot-screen/bpconcjcammlapcogcnnelfmaeghhagj?hl=en"&gt;Nimbus Capture&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Wappalyzer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Wappalyzer is used to detect the Web technologies like cms, framework, etc is using. I used this to see what are others are using to build robust web applications and what I can learn from them.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg?hl=en"&gt;Wappalyzer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Vue.js devtools&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When I have to work with vue.js this helps me debug vue.js applications.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd?hl=en"&gt;Vue.js Devtools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.daily.dev&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This extension is very helpful and it keeps me up to date about dev news, blog, and programming news.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://chrome.google.com/webstore/detail/dailydev-all-in-one-codin/jlmpjdjjbgclbocgajdjefcidcncaied?hl=en"&gt;Daily.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.Lorem Ipsum Generator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Again this one is for adding data to form input and testing the form. This extension helps me to generate random text.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://chrome.google.com/webstore/detail/lorem-ipsum-generator-def/mcdcbjjoakogbcopinefncmkcamnfkdb"&gt;Lorem Ipsum Generator&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8.Clear Cache&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;when a page is loaded frequently browser used to cache the content and this cause problem sometime when you're testing things out.so this extension helps me clearthe cache so that you don't have to go through setting all the time.&lt;/p&gt;

&lt;p&gt;learn more: &lt;a href="https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn?hl=en"&gt;Clear Cache&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9.Web Developer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This extension has set of tools for web developers which helps in many way.&lt;/p&gt;

&lt;p&gt;learn more: &lt;a href="https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm"&gt;Web Developer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.Google Keep&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I use this extension for saving if I find any important website, links. I often use it to keep information UAT servers and things like that.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://chrome.google.com/webstore/detail/google-keep-chrome-extens/lpcaedmchfhocbbapmcbpinfpgnhiddi?utm_source=chrome-ntp-icon"&gt;Google Keep&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for reading. Stay safe&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>chrome</category>
      <category>html</category>
      <category>devjournal</category>
    </item>
    <item>
      <title>Get Azure Certifications for free</title>
      <dc:creator>Anish Ansari</dc:creator>
      <pubDate>Mon, 17 May 2021 05:07:35 +0000</pubDate>
      <link>https://dev.to/ansarianish4/get-azure-certifications-for-free-49el</link>
      <guid>https://dev.to/ansarianish4/get-azure-certifications-for-free-49el</guid>
      <description>&lt;p&gt;You can read more here.&lt;br&gt;
&lt;a href="https://blog.anishansari.com.np/get-azure-certifications-for-free"&gt;https://blog.anishansari.com.np/get-azure-certifications-for-free&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/anishansari"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rb9xKs4G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>azure</category>
      <category>cloudskills</category>
      <category>microsoft</category>
    </item>
    <item>
      <title>Azure - The Virtual Machine Service</title>
      <dc:creator>Anish Ansari</dc:creator>
      <pubDate>Fri, 14 May 2021 14:58:04 +0000</pubDate>
      <link>https://dev.to/ansarianish4/azure-the-virtual-machine-service-3lj0</link>
      <guid>https://dev.to/ansarianish4/azure-the-virtual-machine-service-3lj0</guid>
      <description>&lt;p&gt;Hello all, I hope everyone is safe.&lt;/p&gt;

&lt;p&gt;Today we are going to discuss the virtual machine service on Azure. I am preparing for the Azure Administrator exam (AZ-104) and I decided to share whatever I am learning throughout the preparation so it might be helpful for others like me.&lt;/p&gt;

&lt;p&gt;So let us start with a virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a virtual machine?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A virtual machine (VM) is an abstraction of the physical environment that functions as a virtual computer system with its CPU, memory, network interface, and storage, created on a physical hardware system. So in another word, a virtual machine is a virtual environment with its resources and abstracted from the physical hardware. This is a general definition of a virtual machine.&lt;/p&gt;

&lt;p&gt;The virtual machine service allows you to deploy virtual machines on Azure.&lt;/p&gt;

&lt;p&gt;So let us take the example of a company that wants to set up a couple of virtual machines. Let's say one virtual machine is used for a web server and another for a database server and so on. So the company has to buy physical storage, and networking devices server and use a hypervisor to enable virtualization on the server.&lt;/p&gt;

&lt;p&gt;A lot of expenses and a lot of work right? But these are not needed when you use the Virtual machine on Azure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits of Virtual Machine on Azure&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The benefit of the virtual machine service is that the company needs not to buy and manage the physical server and other devices because storage, networking, and infrastructure are completely managed by Microsoft Azure. All we need to do is we can go to the Azure portal and create a virtual machine and use it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Another benefit is that at any point in time you can just go ahead and delete these virtual machines if you don't need them anymore. But in the case of the company, it is not true, the company has bought this infrastructure. So if they don't deploy anything using this infrastructure it's a complete waste of an investment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The biggest advantage is that you get to use the services such as a virtual machine service on a pay-as-you-go model. So you only pay for what you consume. If you don't need it you don't need to use the service.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Things to know before deploying the virtual machine to Azure&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you deploy a virtual machine on Azure, it deploys the virtual machine and deploys other resources. It deploys virtual networks, disks, virtual network cards, and network security groups. Let us see what are these quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Virtual Network&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The virtual machine needs to reside virtually and this is like a home for the virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Two disks get deployed with the virtual machine and they are an OS disk and a temporary disk.&lt;/p&gt;

&lt;p&gt;OS disk is used for holding OS-level data and the temporary disk is used for holding the temporary data but whenever the machine is stopped you will lose all your data from this disk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Virtual network card&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data that is sent and received by the virtual machine goes via the network interface and the network interface can have private and public IP addresses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Network security group&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A network security group, also called NSG, is like a firewall. NSG decides what type of traffic flows into and out of the virtual machine.&lt;/p&gt;

&lt;p&gt;So in this article, we learned what is the virtual machine service on Azure and what are things that need to be considered before deploying the Virtual machine, and what are the benefits.&lt;/p&gt;

&lt;p&gt;Next, we will see how to deploy Windows and Linux virtual machines on Azure. I hope it helps you stay safe.&lt;/p&gt;

&lt;p&gt;image credit: &lt;a href="https://cdn.neow.in/news/images/uploaded/2019/11/1572653575_azure_vm_story.jpg"&gt;Here&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.buymeacoffee.com/anishansari"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rb9xKs4G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cloudskills</category>
      <category>azure</category>
      <category>cloudnative</category>
    </item>
    <item>
      <title>Network Address Translation(NAT)</title>
      <dc:creator>Anish Ansari</dc:creator>
      <pubDate>Thu, 13 May 2021 05:02:00 +0000</pubDate>
      <link>https://dev.to/ansarianish4/network-address-translation-nat-8c0</link>
      <guid>https://dev.to/ansarianish4/network-address-translation-nat-8c0</guid>
      <description>&lt;p&gt;Hello Everyone, Recently, I came across a topic is NAT and, this felt so interesting so I wanted to share what is NAT and, how does it work.&lt;/p&gt;

&lt;p&gt;So what we will be discussing in this post is :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;what is NAT&lt;/strong&gt;&lt;br&gt;
1.How NAT came in to picture and a little history&lt;br&gt;
2.How NAT works&lt;br&gt;
3.Types of NAT&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Network Address Translation (NAT)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NAT is used to enable multiple hosts on a private network to connect to the Internet using a single public IP address or we can say that the basic idea of NAT is to allow multiple devices to access the Internet through a single public address.&lt;/p&gt;

&lt;p&gt;So basically, NAT helps a private network to communicate with the public network(Internet).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How NAT came in to picture and a little history&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Back in 1994, there was a problem with IPV4 and the problem was the IP address was allocated based on the class. Class A address was given to big companies, smaller companies were given class B and smaller get class C address, and so on and, the main problem with this method was that millions of class A address were wasted, many of the class B address were wasted, whereas, number of addresses available in class C is so small that it cannot cater the needs of organizations.&lt;/p&gt;

&lt;p&gt;Learn more about &lt;a href="https://www.computerhope.com/jargon/i/ip.htm#classes"&gt;IP address classes&lt;/a&gt; and &lt;a href="https://www.geeksforgeeks.org/classful-vs-classless-addressing/"&gt;Classful Vs Classless Addressing&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The solution to this problem was to create several address ranges that are the private IP address like, 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 learn more about &lt;a href="https://en.wikipedia.org/wiki/Private_network#Private_IPv4_addresses"&gt;private IP&lt;/a&gt;. In this way, we were able to solve problems with classful addressing and this allows us to set up a network and pick one of these addresses to build our network. But again there was a problem that, this doesn’t allow us to communicate on the public internet because on the public internet we have to use the public IP address. That’s where NAT came in to picture and helps us to solve this problem by allowing us to communicate with the public internet.so let us see how NAT solves this problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How NAT Works&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W-dPHLXr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/3840/1%2AM7KzJYHoKEmLaoRvryzywQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W-dPHLXr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/3840/1%2AM7KzJYHoKEmLaoRvryzywQ.png" alt="nat.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Network address translation between a private network and the Internet.&lt;br&gt;
Image credit: &lt;a href="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/NAT_Concept-en.svg/220px-NAT_Concept-en.svg.png"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So if we see in the above picture there is a host connected to a private network, a router most likely be configured to use NAT and, a server connected to the internet. if we want to send a message to the server from an internal device that is connected to a private network with the source address 10.0.0.1 and destination address 200.100.10.1&lt;/p&gt;

&lt;p&gt;Now when we send this message out, the message will easily be transferred to the server because our router looks for the destination address which is 200.100.10.1&lt;/p&gt;

&lt;p&gt;But what happens when the server responds? let’s find out. when the server wants to respond and now destination IP will be 10.0.0.10 and source IP will be 200.100.10.1, now when the server responds, we know private is address is not routable and the packet gets rejected and thrown away.&lt;/p&gt;

&lt;p&gt;Here comes the use of NAT, when the server sent the message to the router which will be configured to use NAT, what it does that it takes source IP (10.0.0.1) and store it in a table(also known as NAT table) and replace it with public IP(150.150.0.1).&lt;/p&gt;

&lt;p&gt;Now, if we send any message from private IP to the internet it will reach to the server and when the server responds destination IP will be 150.150.0.1 which is public and points to our router, once the router receives the message it looks in the NAT table and it removes the public IP 150.150.0.1 and replaces it with private address 10.0.0.10 and replaces it with private address 10.0.0.10 and forwards the message back to the device.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Types of NAT&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Static NAT&lt;/strong&gt;&lt;br&gt;
A single private IP address is mapped with a public IP address and is generally used for Web hosting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynamic NAT&lt;/strong&gt;&lt;br&gt;
A private IP address is translated into a public IP address from a pool of public IP addresses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Port Address Translation (PAT)&lt;/strong&gt;&lt;br&gt;
Many private IP addresses can be translated to a single registered IP address. Port numbers are used to distinguish the traffic.&lt;/p&gt;

&lt;p&gt;That’s it, I hope it helps you in any way.&lt;/p&gt;

&lt;p&gt;Stay home stay safe and happy learning&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/anishansari"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rb9xKs4G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How To Create AWS EC2 Instance And Host PHP Applications</title>
      <dc:creator>Anish Ansari</dc:creator>
      <pubDate>Thu, 24 Dec 2020 12:31:25 +0000</pubDate>
      <link>https://dev.to/ansarianish4/how-to-create-aws-ec2-instance-and-host-php-applications-4ibd</link>
      <guid>https://dev.to/ansarianish4/how-to-create-aws-ec2-instance-and-host-php-applications-4ibd</guid>
      <description>&lt;p&gt;Hello everyone,&lt;/p&gt;

&lt;p&gt;Recently, I had to host a PHP application and I was scratching my head as to howI could do that. I went through documentation and videos and I was able to figure it out. So, I want to share how I did it and we will start with what  AWS EC2 is.&lt;/p&gt;

&lt;p&gt;What is AWS?&lt;/p&gt;

&lt;p&gt;So in one line, AWS stands for Amazon Web Services and it is the cloud computing platform from Amazon, for more you can read &lt;a href="https://aws.amazon.com/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What is EC2? &lt;/p&gt;

&lt;p&gt;EC2 stands for Amazon Elastic Compute Cloud (Amazon EC2) and it is a web service that provides various compute capacity in the cloud. It lets us create the desired computing environment quickly. For example, if you need a server up and running for you to test or deploy your application it will take only a minute or two to set up your server in EC2. &lt;/p&gt;

&lt;p&gt;So let us create a virtual machine and host a PHP application. At first, you need to have an AWS account. if you're a student then there is an easier way to get an AWS account using GitHub Student Developer Pack you can check it out &lt;a href="https://education.github.com/pack" rel="noopener noreferrer"&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Go to &lt;a href="https://aws.amazon.com/?nc2=h_lg" rel="noopener noreferrer"&gt;AWS&lt;/a&gt; and click on AWS Management Console under My Account then choose Root user or IAM user based on the description and enter your email.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Floginscreen.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Floginscreen.png" alt="Login"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on next and then enter your password and click on Sign in. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fpassowrdscrren.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fpassowrdscrren.png" alt="Login"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After signing in you will see this screen under the compute click on EC2 then you will be presented with the below screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fservicesscreen.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fservicesscreen.png" alt="List"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on launch instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Flaunchinstance.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Flaunchinstance.png" alt="Launch"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;&lt;br&gt;
Then choose your preferred server image, I want to install an Ubuntu server so I will proceed with this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FchooseOS.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FchooseOS.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then I will choose the free tier. What is the free tier now?&lt;/p&gt;

&lt;p&gt;In this tier, for the first 12 months following your AWS sign-up date, you get up to 750 hours of micro instances each month. When your free usage tier expires or if your usage exceeds the free tier restrictions, you pay standard, pay-as-you-go service rates. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fchooseosfreetirer.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fchooseosfreetirer.png" alt="Free tier"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Click on Configure instance details I will leave everything default here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fconfigurevm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fconfigurevm.png" alt="Detals"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Click on next to add storage. The default provided storage is 8 GB you can add more as per your need. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Faddstorage.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Faddstorage.png" alt="Storage"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now click on the next to add a tag. A tag consists of a case-sensitive key-value pair. For example, you could define a tag with key = Name and value = Webserver. So I am adding PHP instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FaddTags.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FaddTags.png" alt="Keyvalue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Click on next Configure Security Group&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fsecuritygrouplatest.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fsecuritygrouplatest.png" alt="Security"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then click on review and launch now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FReviewspage.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FReviewspage.png" alt="Launch"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will be asked to choose a key pair for authorization purposes. Choose to create a new key-pair and enter the name of your Key Pair and then click on download Key Pair. You need to keep it safe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fkeypairdialog.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fkeypairdialog.png" alt="Keypairdialog"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on view instance and you will see your instance running&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FLaunchstatus.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2FLaunchstatus.png" alt="Status"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see the newly created instance is running.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Frunning%2520instance.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Frunning%2520instance.png" alt="INstance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 9&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Choose your instance and click on connect, now we will be using SSH client in our case it will be putty.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fconnectinstancelates.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fconnectinstancelates.png" alt="INstance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;if you're on windows then you can download putty &lt;a href="https://www.putty.org/" rel="noopener noreferrer"&gt;here&lt;/a&gt; and if you're Linux then you can install putty using your terminal. For Linux, these are the commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get install -y putty
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;putty

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now to connect you need to convert your keypairname.pem file to keypairname.ppk for authorization purposes. You can &lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/convert-pem-file-into-ppk/" rel="noopener noreferrer"&gt;read&lt;/a&gt; how to do it. So after converting launch Putty and follow the steps to connect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 10&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open putty and enter the public IP of your EC2 instance, in my case, it is 3.19.62.96. In putty, go to SSH and click auth and locate your keypairnname.ppk.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Frunning%2520instance%2520with%2520ip.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Frunning%2520instance%2520with%2520ip.png" alt="Putty"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is my putty screen: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtylogin.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtylogin.jpg" alt="Putty"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on open and a Putty security alert window will be prompted click on accept and wait for some time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtysecurity.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtysecurity.jpg" alt="Accept"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After this, you must see the login and you need to enter your username which is ubuntu by default. Enter your username and hit enter and wait for some time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtyubuntu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtyubuntu.jpg" alt="terminal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If everything looks good then you will see the below screen and finally, you're running your Ubuntu server in EC2.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtyubunutstart.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fputtyubunutstart.jpg" alt="Putty"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 11&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now install the Apache server and PHP to run the PHP application &lt;/p&gt;

&lt;p&gt;In order to run a PHP application, we need to install an apache server. So follow the command to install the apache server and PHP.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install apache2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install php libapache2-mod-php php-mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now open your web browser and type your public IP in my case again it is 3.19.62.96 and you must see the below Apache2 Ubuntu Default Page. This means we have installed Apache on the Ubuntu server and it is working fine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fapacherunning.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Fapacherunning.png" alt="Apache"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, whenever a user goes to your web app the Apache server will return HTML files; that means index.html. So we are going to change the configuration and make it look for index.php first and then index.html if index.php is not available. So for doing that below are the commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano /etc/apache2/mods-enabled/dir.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will see something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;IfModule mod_dir.c&amp;gt;  
   DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm  
&amp;lt;/IfModule&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now move the index.php to the first position like below and press CTRL+O and CTRL+X.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;IfModule mod_dir.c&amp;gt;  
   DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm  
&amp;lt;/IfModule&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now restart the apache server and check the status of the server. You must see active(running).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl restart apache2
sudo systemctl status apache2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 12&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create a PHP application that displays 'Hello World' and host.&lt;/p&gt;

&lt;p&gt;Now we are going to write a simple PHP program that displays 'Hello World' and host it on our server. The following are the commands for that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /var/www/html
sudo nano index.php

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now write this code and press CTRL+O and CTRL+X.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php  
   echo "Hello World";  
?&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now go to your web browser and enter your public IP and you must see "Hello World".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Ffinaloutpt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcsharpcorner.azureedge.net%2Farticle%2Fhow-to-create-aws%2FImages%2Ffinaloutpt.png" alt="Apache"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this is helpful, if you have any query, feedback or suggestions please do let me know. Stay Safe. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/anishansari" rel="noopener noreferrer"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.buymeacoffee.com%2Fbuttons%2Fv2%2Fdefault-yellow.png" alt="Buy Me A Coffee"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>php</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
