<?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: Ovi Eryk</title>
    <description>The latest articles on DEV Community by Ovi Eryk (@ovi_eryk_0430fcb11cb709e3).</description>
    <link>https://dev.to/ovi_eryk_0430fcb11cb709e3</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%2F2006631%2Fd17496c3-cbf5-44cd-89d1-371c26fefd0c.jpeg</url>
      <title>DEV Community: Ovi Eryk</title>
      <link>https://dev.to/ovi_eryk_0430fcb11cb709e3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ovi_eryk_0430fcb11cb709e3"/>
    <language>en</language>
    <item>
      <title>WEB DEPLOYMENT ON AMAZON EC2</title>
      <dc:creator>Ovi Eryk</dc:creator>
      <pubDate>Wed, 09 Oct 2024 14:20:06 +0000</pubDate>
      <link>https://dev.to/ovi_eryk_0430fcb11cb709e3/web-deployment-on-amazon-ec2-51m4</link>
      <guid>https://dev.to/ovi_eryk_0430fcb11cb709e3/web-deployment-on-amazon-ec2-51m4</guid>
      <description>&lt;p&gt;&lt;strong&gt;PREREQUISITE&lt;/strong&gt;&lt;br&gt;
Before deploying a website on AWS, you must first have an AWS registered account, either as a Root User or as an IAM (Identity Access Management) User.&lt;br&gt;
NOTE: All codes are only compatible to linux operating systems, these codes would not work on windows command prompts.&lt;/p&gt;

&lt;p&gt;The following are steps you can take after launching an instance on AWS.&lt;/p&gt;

&lt;p&gt;STEP 1: Highlight the instance and click the button connect, and it opens a new tab, on the new tab, you will see 'instance connect' option, scroll down and you will see connect. Then it takes you to a command page.&lt;/p&gt;

&lt;p&gt;STEP 2: Note that you are connected as an EC2 user, to change that so you can have more control, you key in - sudo su&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fse5rbcuey58xlkxc7x9g.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fse5rbcuey58xlkxc7x9g.png" alt="Image description" width="353" height="55"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 3: You update the server with the code: yum update -y&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fskq6ubeu8wt0pzeqx6ur.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fskq6ubeu8wt0pzeqx6ur.png" alt="Image description" width="651" height="47"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 3: After updating, you install the Apache http server with the code: yum install httpd -y&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5schzvzcbpa1w4quope2.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5schzvzcbpa1w4quope2.png" alt="Image description" width="667" height="46"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 4: You then need to create a temporary folder with the code: mkdir temp, and cd temp into it.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw6hmbvv3ah1uen43wlxt.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw6hmbvv3ah1uen43wlxt.png" alt="Image description" width="396" height="54"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 5: Now, you copy the link of the website you want to deploy and : wget + web link.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wd6oe5mu5z16gwfblb7.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wd6oe5mu5z16gwfblb7.png" alt="Image description" width="800" height="33"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 6: Next you ls into the folder to see the zip folder of the link, and then you unzip with: unzip + file name (the zipped file)&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8z3cs2xlt0y1ujka317h.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8z3cs2xlt0y1ujka317h.png" alt="Image description" width="423" height="96"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 7: Do 'ls', then cd into it with: cd + new file. You can also ls to see list of files in the unzipped folder (optional).&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhix78idddebxy17inl6s.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhix78idddebxy17inl6s.png" alt="Image description" width="392" height="71"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 8: Its now time to move all these files for deployment with: mv * /var/www/html. After that, you cd into it with: cd /var/www/html.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtetqs84pg037mhv6vlj.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtetqs84pg037mhv6vlj.png" alt="Image description" width="510" height="39"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 9: You are almost ready to deploy, you just need to enable it to work and you do that with: systemctl enable httpd.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxcwz8xkgwmcqarvgmifp.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxcwz8xkgwmcqarvgmifp.png" alt="Image description" width="800" height="31"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 10: The final step is to start and check the status of the site you are about to deploy. To start: systemctl start httpd&lt;br&gt;
                         To check status: systemctl status httpd&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxhxa62b34gkynjkif64c.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxhxa62b34gkynjkif64c.png" alt="Image description" width="482" height="45"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;YOU ARE READY TO GO!&lt;/p&gt;

&lt;p&gt;CONCLUSION:&lt;br&gt;
 Voila! You have successfully deployed your website on Amazon EC2. Follow me for more posts like this.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
