<?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: Mihir</title>
    <description>The latest articles on DEV Community by Mihir (@miihirsawant).</description>
    <link>https://dev.to/miihirsawant</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%2F885620%2F6a5f2e61-5101-429a-a05c-455b598330e8.jpeg</url>
      <title>DEV Community: Mihir</title>
      <link>https://dev.to/miihirsawant</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miihirsawant"/>
    <language>en</language>
    <item>
      <title>WordPress Automation with Custom AMI</title>
      <dc:creator>Mihir</dc:creator>
      <pubDate>Fri, 16 Sep 2022 19:01:33 +0000</pubDate>
      <link>https://dev.to/miihirsawant/wordpress-automation-with-custom-ami-15pk</link>
      <guid>https://dev.to/miihirsawant/wordpress-automation-with-custom-ami-15pk</guid>
      <description>&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;WordPress Automation with Custom AMI&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Launch the free tier Amazon Linux 2 and Connect to the instance using Instance Connect (Enable SSH/22 &amp;amp; HTTP/80 from anywhere IPv4)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create authentication variables necessary for WordPress Database&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Apache HTTPD, MariaDB and PHP dependencies &lt;a href="https://github.com/miihirsawant-git/wordpress-ami-automation/blob/main/README.md"&gt;Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set the services to enable during boot and start the service &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set Mariadb Root Password&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install latest version for WordPress &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configure WordPress to follow the authentication variables set during step 2 and change the owner permissions for the files &lt;a href="https://github.com/miihirsawant-git/wordpress-ami-automation/blob/main/README.md"&gt;Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create the Wordpress Database&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to &lt;code&gt;http://public_ipv4_address&lt;/code&gt; to ensure WordPress installation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a banner using cowsay&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Inside the &lt;code&gt;40-cow&lt;/code&gt; file insert commands&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Change permissions for the file to be read and executed by everyone &lt;a href="https://github.com/miihirsawant-git/wordpress-ami-automation/blob/main/README.md"&gt;Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Apply update&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reboot and ensure the banner and final WordPress application&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stop the instance and Create an image from the Stopped Instance&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Name: &lt;code&gt;WordPressAMIAutomation&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;  Create Image&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ensure Snapshot and AMI creation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Launch a custom instance from the &lt;code&gt;WordPressAMIAutomation&lt;/code&gt; AMI&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configuration wizard allows hardware changes for custom VPC, harddisk space and advanced configuration such as security group configuration&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reference: 
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BFs5rK----/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yhxdlr19d9c6zwd4y2ww.png" alt="Configuration Wizard" width="880" height="625"&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Login instance using Instance Connect&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Reference:&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2vh4D2Zp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f55076tm1jvfoi7czh8i.png" alt="Banner" width="880" height="326"&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go to &lt;code&gt;http://public_ipv4_address&lt;/code&gt; to ensure WordPress automated installation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reference: 
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aVvLZ1p---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8lwmrsmbtn63rceji7s0.png" alt="Image description" width="880" height="561"&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>aws</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Docker-based User-Profile handler JS Application</title>
      <dc:creator>Mihir</dc:creator>
      <pubDate>Sun, 04 Sep 2022 03:25:23 +0000</pubDate>
      <link>https://dev.to/miihirsawant/docker-based-user-profile-handler-js-application-1hi5</link>
      <guid>https://dev.to/miihirsawant/docker-based-user-profile-handler-js-application-1hi5</guid>
      <description>&lt;p&gt;Hello Amazing people 👋 Here's a JavaScript application I built based on Docker containerized services for user-profile management purposes.&lt;/p&gt;

&lt;h3&gt;
  
  
  GitHub
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/miihirsawant-git/userprofile-DockerJS.git"&gt;Code&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Tools
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  Docker&lt;/li&gt;
&lt;li&gt;  HTML, CSS&lt;/li&gt;
&lt;li&gt;  MongoDB, Mongo-Express data storage&lt;/li&gt;
&lt;li&gt;  Nodejs backend&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Building the application
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;  Pull the images for &lt;code&gt;mongodb&lt;/code&gt; and &lt;code&gt;mongo-express&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nG9irHWM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/decdyckatwhbm4emzu1i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nG9irHWM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/decdyckatwhbm4emzu1i.png" alt="Image description" width="880" height="331"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HxQYQjW1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/99930ss6r4qtrc48byft.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HxQYQjW1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/99930ss6r4qtrc48byft.png" alt="Image description" width="880" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create &lt;code&gt;docker network&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start &lt;code&gt;mongodb inside docker container&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vHy1qak0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z0vyvi2t8jbbp19fgs76.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vHy1qak0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z0vyvi2t8jbbp19fgs76.png" alt="Image description" width="880" height="250"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start &lt;code&gt;mongo-express inside docker container&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3ye3xqY9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2jzcy9b214zwz9dv4c8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3ye3xqY9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2jzcy9b214zwz9dv4c8.png" alt="Image description" width="880" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Open mongo-express from browser
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    http://localhost:8081
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;  Create &lt;code&gt;my-db&lt;/code&gt; database in mongo-express dashboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HhPn-00t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dukk7iwqidpkx0wo5a4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HhPn-00t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dukk7iwqidpkx0wo5a4w.png" alt="Image description" width="880" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Create &lt;code&gt;users&lt;/code&gt; collection inside the database&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q3kjcTTv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6kxuokeled2w4hu0gawh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q3kjcTTv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6kxuokeled2w4hu0gawh.png" alt="Image description" width="880" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start your nodejs application locally - go to &lt;code&gt;app&lt;/code&gt; directory of project &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--S-FYsWSc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57vrlcomq621r68wb2o3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--S-FYsWSc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57vrlcomq621r68wb2o3.png" alt="Image description" width="880" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jt_RGz1K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jx22hhxys1yhd3t4sa29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jt_RGz1K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jx22hhxys1yhd3t4sa29.png" alt="Image description" width="880" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Access you nodejs application UI from browser
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    http://localhost:3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Add a user profile in application UI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HwPkI6ZR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ch5p6evd3u2t27eo7s9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HwPkI6ZR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ch5p6evd3u2t27eo7s9z.png" alt="Image description" width="880" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to mongo-express dashboard and ensure addition of credentials&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ewWpTkkr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d0mpzp3xpi09nmh25epj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ewWpTkkr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d0mpzp3xpi09nmh25epj.png" alt="Image description" width="880" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Completion
&lt;/h3&gt;

&lt;p&gt;That's it, the Docker-based User-Profile handler JS Application is up and running!🥳 &lt;/p&gt;

&lt;p&gt;Feel free to add as many entries as you want, which can all be managed with the mongo-express dashboard.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to create a LAMP Server on AWS</title>
      <dc:creator>Mihir</dc:creator>
      <pubDate>Fri, 01 Jul 2022 16:48:15 +0000</pubDate>
      <link>https://dev.to/miihirsawant/how-to-create-a-lamp-server-on-aws-1p87</link>
      <guid>https://dev.to/miihirsawant/how-to-create-a-lamp-server-on-aws-1p87</guid>
      <description>&lt;p&gt;Hello Amazing people 👋 Here's a beginner friendly project to get-started with public cloud services&lt;/p&gt;

&lt;p&gt;Some prerequisities: Basic Understanding of linux commands, networking and cloud&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's get started
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Phase1: Linux Server setup on AWS
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Login &lt;code&gt;AWS portal&lt;/code&gt; -&amp;gt; Go to &lt;code&gt;EC2 services&lt;/code&gt; -&amp;gt; &lt;code&gt;Launch an instance&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Select instance AMI &lt;code&gt;Red Hat Linux 8&lt;/code&gt; or &lt;code&gt;Rocky Linux 8&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Create a new security group to allow &lt;code&gt;HTTP&lt;/code&gt;, &lt;code&gt;HTTPS&lt;/code&gt; &amp;amp; &lt;code&gt;SSH&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Create a &lt;code&gt;key-pair&lt;/code&gt; -&amp;gt; Launch the instance&lt;/li&gt;
&lt;li&gt;Connect instance with &lt;code&gt;ssh&lt;/code&gt; using local terminal
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ssh -i &amp;lt;key-pair.pem file&amp;gt; ec2-user@&amp;lt;instance public ipv4 address&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0evxuIfq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ip73mew993edcf0a798h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0evxuIfq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ip73mew993edcf0a798h.png" alt="Image description" width="880" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase2: Apache Server setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Connect instance with ssh&lt;/li&gt;
&lt;li&gt;Install the &lt;code&gt;apache server&lt;/code&gt; with &lt;code&gt;dnf&lt;/code&gt; package manager command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  sudo dnf install httpd -y &amp;amp;&amp;amp; sudo systemctl start httpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7GPvidm8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sb47f17cxly73enxtiqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7GPvidm8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sb47f17cxly73enxtiqd.png" alt="Image description" width="880" height="601"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to the public IPv4 address to view the apache server
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OJCydIp_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8czx73hxrm9ii588jsp2.png" alt="Image description" width="880" height="264"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Phase3: Database Server setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Install the latest &lt;code&gt;mariadb database server&lt;/code&gt; setup with &lt;code&gt;dnf&lt;/code&gt; package manager command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  sudo dnf install mariadb-server -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Start the server
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  sudo systemctl start mariadb &amp;amp;&amp;amp; mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xiLCkB8e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hn7f4hxy00vuyctc4fou.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xiLCkB8e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hn7f4hxy00vuyctc4fou.png" alt="Image description" width="880" height="601"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log in mysql database and check the databases to ensure database setup&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hN1cMzn9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/998uaamf974a52osh5z5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hN1cMzn9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/998uaamf974a52osh5z5.png" alt="Image description" width="880" height="602"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 4: PHP Server Module
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Enable the &lt;code&gt;php module&lt;/code&gt; and install with &lt;code&gt;dnf&lt;/code&gt; package manager command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  sudo dnf module enable php:7.4 &amp;amp;&amp;amp; sudo dnf install php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HSvskGyT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/211btb24sunt62za1n3c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HSvskGyT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/211btb24sunt62za1n3c.png" alt="Image description" width="880" height="603"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start &lt;code&gt;php-fpm&lt;/code&gt; module to optimize and restart to apply changes
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  sudo systemctl start php-fpm &amp;amp;&amp;amp; sudo systemctl restart httpd php-fpm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Go to /phpinfo.php to ensure php module installation. If you are not able to view phpinfo webpage, ensure the file is in the correct directory, or create one with terminal
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ABLdDlcO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/58fxbnval1haq8ubgwqp.png" alt="Image description" width="880" height="335"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Completion
&lt;/h3&gt;

&lt;p&gt;That's it, the LAMP Server is up and running!🥳&lt;/p&gt;

&lt;p&gt;If you want to have a more detailed step-by-step procedure, please checkout my &lt;a href="https://github.com/miihirsawant-git/aws-lamp-server"&gt;Github&lt;/a&gt; page or feel free to to reach out on &lt;a href="https://twitter.com/miihirsawant"&gt;Twitter&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
