<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Manav Mandli on Medium]]></title>
        <description><![CDATA[Stories by Manav Mandli on Medium]]></description>
        <link>https://medium.com/@manavmandli2990?source=rss-3b463e57b92d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mKVLS9enOqqgnW1DbziNnw.png</url>
            <title>Stories by Manav Mandli on Medium</title>
            <link>https://medium.com/@manavmandli2990?source=rss-3b463e57b92d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:03:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manavmandli2990/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Git Working Steps for Feature Development]]></title>
            <link>https://medium.com/@manavmandli2990/git-working-steps-for-feature-development-06001a23a371?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/06001a23a371</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 13:42:43 GMT</pubDate>
            <atom:updated>2024-08-03T13:43:20.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*y5gW7kofkqggtU1sgd6VTg.png" /></figure><ol><li>Check your current branch</li></ol><pre>git branch</pre><p>2. Switch to the develop branch</p><pre>git checkout develop</pre><p>3. Update your develop branch</p><pre>git pull upstream develop</pre><p>4. Create a feature branch on GitHub or Bitbucket</p><p>Create your feature branch following this naming convention (e.g., feature/SAM-1).</p><p>5. Fetch the newly created feature branch</p><pre>git fetch --all</pre><p>6. Checkout your feature branch</p><pre>git branch<br># If the feature branch appears<br>git checkout feature/SAM-1<br># Else<br>git checkout -b feature/SAM-1<br>git pull upstream feature/SAM-1</pre><p>Start Working on Your Task</p><p>After Completing Your Task</p><ol><li>Check your changes</li></ol><pre>git status</pre><p>2. Stash your changes temporarily</p><pre>git stash</pre><p>3. Switch to the develop branch</p><pre>git checkout develop</pre><p>4. Update your develop branch</p><pre>git pull upstream develop</pre><p>5. Switch back to your feature branch</p><pre>git checkout feature/SAM-1<br># Verify your current branch<br>git branch</pre><p>6. Apply your stashed changes</p><pre>git stash apply</pre><p>Verify your changes:</p><pre>git status</pre><p>7. Add and commit your changes</p><pre>git add .<br>git commit -m &quot;Your message&quot;</pre><p>8. Merge develop into your feature branch to ensure compatibility</p><pre>git merge develop</pre><p>If there are conflicts, resolve them manually:</p><pre>git add .<br>git commit -m &quot;Resolved merge conflicts&quot;</pre><p>9. Push your changes to your feature branch</p><pre>git push upstream feature/SAM-1</pre><p>Then go to GitHub or Bitbucket and create a Pull Request (PR) to the develop branch.</p><h3>Alternative Method: Using Rebase to Handle Conflicts</h3><p>Instead of merging, you can use rebase to keep a cleaner history. Here’s how:</p><ol><li>Check your changes</li></ol><pre>git status</pre><p>2. Stash your changes temporarily</p><pre>git stash</pre><p>3. Switch to the develop branch</p><pre>git checkout develop</pre><p>4. Update your develop branch</p><pre>git pull upstream develop</pre><p>5. Switch back to your feature branch</p><pre>git checkout feature/SAM-1<br># Verify your current branch<br>git branch</pre><p>6. Apply your stashed changes</p><pre>git stash apply</pre><p>Verify your changes:</p><pre>git status</pre><p>7. Add and commit your changes</p><pre>git add .<br>git commit -m &quot;Your message&quot;</pre><p>8. Rebase your feature branch on develop</p><pre>git rebase develop</pre><p>If there are conflicts, resolve them manually. After resolving, continue the rebase:</p><pre>git add .<br>git rebase --continue</pre><p>9. Push your changes to your feature branch</p><p>Note: You may need to force-push because of the rebase.</p><pre>git push --force-with-lease upstream feature/SAM-1</pre><p>Then go to GitHub or Bitbucket and create a Pull Request (PR) to the develop branch.</p><h3>Which Method to Use?</h3><ul><li><strong>Merge</strong>: Simple and preserves the context of feature branches. Suitable for teams that prefer a straightforward approach.</li><li><strong>Rebase</strong>: Creates a cleaner commit history but can be more complex. Ideal for teams that prefer a linear project history.</li></ul><p>Choose the method that best fits your team’s workflow and preferences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06001a23a371" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install a Free SSL Certificate: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@manavmandli2990/how-to-install-a-free-ssl-certificate-a-step-by-step-guide-357caf2aad0a?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/357caf2aad0a</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Sun, 23 Jun 2024 08:27:01 GMT</pubDate>
            <atom:updated>2024-06-23T08:27:01.560Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Choose a Free SSL Certificate?</h3><ul><li><strong>Cost-effective</strong>: Free SSL certificates provide basic encryption without the financial burden.</li><li><strong>Trust</strong>: Browsers mark websites with SSL certificates as “secure,” boosting visitor trust.</li><li><strong>SEO Benefits</strong>: Search engines like Google favor HTTPS-enabled websites, potentially improving your search rankings.</li></ul><h3>Step-by-Step Guide to Install a Free SSL Certificate</h3><h4>Step 1: Choose a Free SSL Certificate Provider</h4><p>Several reliable providers offer free SSL certificates. The most popular ones include:</p><ul><li><strong>Let’s Encrypt</strong>: A widely-used certificate authority providing free SSL certificates.</li><li><strong>Cloudflare</strong>: Offers free SSL and additional security features through its CDN service.</li></ul><p>For this guide, we’ll focus on using <strong>Let’s Encrypt</strong>.</p><h4>Step 2: Install Certbot</h4><p><strong>Certbot</strong> is a free, open-source software tool that automates the process of obtaining and renewing SSL certificates from Let’s Encrypt.</p><ol><li><strong>SSH into Your Server</strong>: Access your server via SSH. If you’re using a service like DigitalOcean, AWS, or similar, you can typically find the SSH instructions in your account dashboard.</li><li><strong>Install Certbot</strong>:</li></ol><p>Certbot is a tool to obtain and renew Let’s Encrypt SSL certificates<strong>:</strong></p><p>For Ubuntu:</p><pre>sudo apt update<br>sudo apt install certbot python3-certbot-nginx  # For Nginx<br># OR<br>sudo apt install certbot python3-certbot-apache  # For Apache</pre><h4>Step 3: Obtain the SSL Certificate</h4><p>Run Certbot to obtain and install the SSL certificate.</p><ul><li>For <strong>Apache</strong>:</li></ul><pre>sudo certbot --apache</pre><p>For Nginx:</p><pre>sudo certbot --nginx</pre><p>Certbot will prompt you to provide your email address and agree to the terms of service. Then, it will automatically obtain and install the SSL certificate.</p><h4>Step 4: Verify Automatic Renewal</h4><p>Let’s Encrypt certificates are valid for 90 days. Certbot sets up a cron job to renew the certificates automatically. You can check if the cron job is set up by running:</p><pre>sudo systemctl status certbot.timer</pre><h4>Step 5. Restart Your Web Server</h4><p>Restart your web server to apply the changes.</p><p>For Nginx:</p><pre>sudo systemctl restart nginx</pre><p>For Apache:</p><pre>sudo systemctl restart apache2<br># OR<br>sudo systemctl restart httpd</pre><h3>Conclusion</h3><p>Installing a free SSL certificate with Let’s Encrypt and Certbot is a straightforward process that enhances your website’s security, boosts visitor trust, and can improve your search engine rankings. By following this guide, you can ensure your website is protected and optimized for better performance on search engines like Google.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=357caf2aad0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up Bench for Frappe Framework: A Beginner’s Guide]]></title>
            <link>https://medium.com/@manavmandli2990/setting-up-bench-for-frappe-framework-a-beginners-guide-54b67fd1fdef?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/54b67fd1fdef</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 09:37:33 GMT</pubDate>
            <atom:updated>2024-04-01T09:54:06.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQmGddsAtgiVqVD-k0468Q.png" /></figure><p>Installation of Bench:</p><p>For newcomers to the Frappe Framework, setting up Bench, the command-line tool for managing Frappe applications, is the first step.</p><h3>Installation</h3><p>Start by ensuring Bench is installed on your system. You can check this by running:</p><pre>$ bench --version<br>5.1.0</pre><h3>Create the frappe-bench directory</h3><p>Let’s initiate the directory for our project:</p><pre>bench init frappe-bench<br>ls</pre><p>Directory files details:</p><ul><li>env: Python virtual environment</li><li>config: Config files for Redis and Nginx</li><li>logs: Log files for every process (web, worker)</li><li>sites: Sites directory</li><li>assets: Static assets that are served via Nginx in production</li><li>apps.txt: List of installed frappe apps</li><li>common_site_config.json: Site config that is available in all sites</li><li>apps: Apps directory</li><li>frappe: The Frappe app directory</li><li>Procfile: List of processes that run in development</li></ul><h3>Start the Bench Server</h3><p>Now that we have created our frappe-bench directory, we can start the Frappe web server by running the following command</p><pre>cd frappe-bench<br>bench start</pre><h3>Create app</h3><p>Before we start, make sure you’re in a bench directory. To confirm, run this commands:</p><pre>$ bench find .<br>/home/frappe/frappe-bench is a bench directory!</pre><p>To create our Library Management app, run the new-app command:</p><pre>$ bench new-app library_management<br>App Title (default: Library Management):<br>App Description: Library Management System<br>App Publisher: Faris Ansari<br>App Email: faris@example.com<br>App Icon (default &#39;octicon octicon-file-directory&#39;):<br>App Color (default &#39;grey&#39;):<br>App License (default &#39;MIT&#39;):<br>&#39;library_management&#39; created at /home/frappe/frappe-bench/apps/library_management<br><br>Installing library_management</pre><p>After establishing the directory structure for the app, you’ll find the following directories:</p><ul><li>library_management: This directory will contain all the source code for your app</li><li>public: Store static files that will be served from Nginx in production</li><li>templates: Jinja templates used to render web views</li><li>www: Web pages that are served based on their directory path</li><li>library_management: Default Module bootstrapped with app</li><li>modules.txt: List of modules defined in the app</li><li>patches.txt: Patch entries for database migrations</li><li>hooks.py: Hooks used to extend or intercept standard functionality provided by the framework</li><li>pyproject.toml: Specifies how your app is built, you can optionally add 3rd party Python dependencies here which will get installed when your app is installed.</li></ul><h3>Create a new site</h3><p>To create a new site, run the following command from the frappe-bench directory:</p><pre>bench new-site library.localhost<br>MySQL root password:<br><br>Installing frappe...<br>Updating DocTypes for frappe        : [========================================] 100%<br>Updating country info               : [========================================] 100%<br>Set Administrator password:<br>Re-enter Administrator password:<br>*** Scheduler is disabled ***<br>Current Site set to library.localhost</pre><p>This will map library.localhost to localhost. Bench has a convenient command to do just that.</p><pre>$ bench --site library.localhost add-to-hosts</pre><p>This will ask for your root password and add an entry to your /etc/hosts file.</p><p>Great, now you can access your site at <a href="http://library.localhost:8000.">http://library.localhost:8000</a> or <a href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a> Congratulations formaking it this far.</p><h3>Install the app on site</h3><p>To install our Library Management app on our site, run the following command:</p><pre>$ bench --site library.localhost install-app library_management<br><br>Installing library_management...</pre><p>To confirm if the app was installed, run the following command:</p><pre>$ bench --site library.localhost list-apps<br>frappe<br>library_management</pre><h3>Site commands</h3><p>We ran a couple of bench commands with the --site option. These commands are called site commands.</p><p>Here are some of the useful site commands.</p><p>Python Console</p><pre># Access the Python console<br>$ bench --site library.localhost console<br>Apps in this namespace:<br>frappe, library_management<br><br>In [1]:</pre><p>MariaDB Console</p><pre># access the mariadb console<br>$ bench --site library.localhost mariadb<br>Welcome to the MariaDB monitor.  Commands end with ; or \g.<br>Your MariaDB connection id is 2333498<br>Server version: 10.4.13-MariaDB Homebrew<br><br>Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<br><br>Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.<br><br>MariaDB [_ad03fa1a016ca1c4]&gt;</pre><p>Database Backup</p><pre>$ bench --site library.localhost backup<br>Backup Summary for library.localhost at 2020-10-06 23:21:17.277960<br>Config  : ./library.localhost/private/backups/20201006_232116-library_test-site_config_backup.json   94.0B<br>Database: ./library.localhost/private/backups/20201006_232116-library_test-database.sql.gz           217.4KiB<br>Backup for Site library.localhost has been successfully completed</pre><p>You can see a list of all site commands by running the following command:</p><pre>$ bench --help<br>Usage: bench frappe [OPTIONS] COMMAND [ARGS]...<br><br>Options:<br>  --site TEXT<br>  --profile    Profile<br>  --verbose    Verbose<br>  --force      Force<br>  --help       Show this message and exit.<br><br>Commands:<br>  add-system-manager          Add a new system manager to a site<br>  add-to-email-queue          Add an email to the Email Queue<br>  add-to-hosts                Add site to hosts<br>  backup                      Backup<br>  browse                      Opens the site on web browser<br>  build                       Minify + concatenate JS and CSS files, build...<br>  build-message-files         Build message files for translation<br>  build-search-index<br>  bulk-rename                 Rename multiple records via CSV file<br>  clear-cache                 Clear cache, doctype cache and defaults<br>  clear-website-cache         Clear website cache<br>  console                     Start ipython console for a site<br>  data-import                 Import documents in bulk from CSV or XLSX...<br>  destroy-all-sessions        Clear sessions of all users (logs them out)</pre><p>That’s it! You’re now set up with Frappe Framework and Bench, ready to develop your applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54b67fd1fdef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionizing Startup Tech: The Power of Frappe ERPNext from a Developer’s Viewpoint]]></title>
            <link>https://medium.com/@manavmandli2990/revolutionizing-startup-tech-the-power-of-frappe-erpnext-from-a-developers-viewpoint-62026faf4cf1?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/62026faf4cf1</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 05:27:00 GMT</pubDate>
            <atom:updated>2024-03-19T05:27:00.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bumu78gdsA1gRefh" /><figcaption>Frappe ERPNext is a Game-Changer for Startups</figcaption></figure><p>In the fast-paced world of startups, where agility and efficiency reign supreme, choosing the right tech stack can make or break a business. As a software developer deeply involved in various startup ventures, I firmly believe in the power of platforms like Frappe ERPNext, especially for startups where technology plays a supporting role rather than being the main product.</p><p><strong>The Adaptive Nature of Startups</strong></p><p>Startups are known for their constant evolution and pivoting business models. This ongoing process often leads to changing requirements, which can result in wasted time and resources if platforms are built from scratch. Frappe ERPNext provides a solid and flexible foundation that can adapt to the ever-changing needs of startups, minimizing waste and maximizing resource utilization.</p><p><strong>Simplified Tech Development</strong></p><p>Establishing a robust tech infrastructure can be a time-consuming task. However, with Frappe ERPNext, startups can significantly reduce the time needed for tech development. By offering pre-built modules and functionalities, the platform allows developers to focus on customization rather than starting from scratch. This time-saving aspect is crucial for startups looking to quickly launch their products and stay ahead of the competition.</p><p><strong>Bridging the Business-Technical Gap</strong></p><p>Aligning business goals with technical implementations is often a challenge for startups, leading to communication gaps. Frappe ERPNext acts as a bridge, facilitating seamless collaboration between business and tech teams. While developers leverage their expertise, the presence of a dedicated Product Manager ensures that the tech aligns with evolving business requirements, fostering effective communication.</p><p><strong>Facilitating Learning and Leveraging Experience</strong></p><p>In the fast-paced startup environment, where learning curves are steep and requirements change rapidly, experienced developers are invaluable. Frappe ERPNext enables developers to leverage existing functionalities, reducing the need for extensive learning. This empowers the development team to focus on innovation and customization rather than spending time learning new technologies.</p><p><strong>Minimizing Redundant Development</strong></p><p>Startups often end up building features that already exist in the market, leading to redundant development efforts. Frappe ERPNext comes with an extensive set of features covering a wide range of use cases, minimizing the chances of redundant development. Developers can leverage these existing modules and functionalities, ensuring that they allocate their time to more impactful tasks.</p><p><strong>Embracing Low-Code/No-Code Solutions</strong></p><p>The rise of Low-Code/No-Code platforms has transformed the way startups approach software development. Frappe ERPNext falls into the category of efficient Backend platforms, enabling startups to build robust backend systems with minimal engineering resources. This approach not only accelerates development but also reduces the cost of talent acquisition for the tech team.</p><p><strong>Realizing Time Savings with Frappe ERPNext</strong></p><p>My recent experience working on an e-commerce project, where Frappe ERPNext serves as the backend integrated with Vue.js on the front end, highlighted significant time savings. Compared to previous startups, where backend development consumed substantial time, the adoption of Frappe ERPNext streamlined the process, allowing me to focus on delivering value to the client.</p><p>In conclusion, Frappe ERPNext emerges as a game-changer for startups, providing a versatile and time-efficient solution for their tech needs. Its low-code nature, coupled with extensive features, makes it a strategic choice for startups looking to optimize development resources, accelerate time-to-market, and navigate the dynamic challenges of the entrepreneurial journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62026faf4cf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate Guide: Configuring Tomcat Server on AWS EC2 Instance for Java Application Deployment]]></title>
            <link>https://medium.com/@manavmandli2990/ultimate-guide-configuring-tomcat-server-on-aws-ec2-instance-for-java-application-deployment-2e96c5eb5ecf?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e96c5eb5ecf</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Sun, 25 Feb 2024 09:11:56 GMT</pubDate>
            <atom:updated>2024-02-25T09:11:56.296Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create an EC2 Instance</h3><p>We will create an EC2 instance and launch it now. To create an EC2 instance, please follow these steps:</p><ul><li>Open the AWS console by clicking <a href="https://console.aws.amazon.com/"><strong>here</strong></a><strong>.</strong></li><li>Click on Sign it to the Console button.</li><li>Provide your root user credentials and click on sign in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8ZBSSUkggH_VpRIaLE_5g.png" /></figure><ul><li>After successful login, Click on <strong>Services </strong>and navigate to <strong>All Services -&gt; EC2</strong> or you can directly search <strong>EC2 </strong>in the <strong>search bar</strong>.</li><li>Choose your specific region from the header.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EO-zjPDaf5H0BDkM8crsbg.png" /></figure><ul><li>Navigate<strong> </strong>to<strong> Instance </strong>and<strong> </strong>click on <strong>Launch Instance</strong>. It will open a new page to create an instance.</li><li>Enter the name of your instance and choose your specific OS Image (Amazon Machine Image) like Windows, Ubuntu, macOS etc. Amazon provides some <strong>Free tier eligible OS </strong>and you can choose any of them for your learning purpose.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RyqtWtdrgBp14t1m.png" /></figure><ul><li>Choose <strong>t2.micro</strong> from<strong> Instance type </strong>which is also eligible of <strong>Free tier.</strong></li><li>Click on <strong>create new key pair</strong>, Provide the name, choose pair type RSA and file format pem and click on<strong> create key pair. </strong>It will download a <strong>pem</strong> file. Save this file in a secure folder, You will need this file to connect your instance later. You can’t download the same file again.</li><li>Under <strong>Network settings</strong>, You can create a security group by clicking <strong>Create Security Group</strong> for your <strong>instance </strong>or select the <strong>default security group</strong>.</li><li>Now Click on <strong>Launch Instance </strong>and It will display<strong> Successfully initiated launch of instance.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WPuJzxVqe6u5su8g.png" /></figure><ul><li>Once the instance is created, You will be able to see that instance by navigating on <strong>Instances</strong> in side-bar.</li><li>If Instance state is in the running state, It means your instance is running properly and you can configure your instance now.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XMLlXdk675MVDqKc.png" /></figure><ul><li>When you select your instance from the checkbox, It will display all details and configurations of your instance.</li><li>In the <strong>Details </strong>section, There is a Public IPv4 address which will be change mostly when you stop or reboot your instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HnS0FmAqo1qeih_J.png" /></figure><ul><li>Hence, We will create an Elastic IP to replace the default Public IPv4 address and it will remains even after rebooting your instance.</li><li>To create an Elastic IP, Click on <strong>Elastic IPs </strong>under<strong> Network and Security </strong>in the sidebar menu, Choose <strong>Allocate Elastic IP address </strong>and click on <strong>Allocate</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/0*POZIdyXtINupEWqK.png" /></figure><ul><li>Once Elastic IP created, It will be listed under Elastic IP addresses. Click on your Elastic IP and It will open a new page where you will need to associate your Elastic IP with your instance.</li><li>Click on <strong>Associate Elastic IP address</strong>, Choose your <strong>instance </strong>and click on <strong>Associate.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/0*RMMo1CI3cwF0fE7r.png" /></figure><ul><li>You will see that Elastic IP address is associated with your instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t_wXQtlL0cD7Pb96.png" /></figure><ul><li>Now when you go to your instance details, <strong>Default Public IPv4</strong> <strong>address</strong> is replaced with <strong>Elastic IP address</strong>. It will remains same even after <strong>rebooting the instance</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KGkQ0pO4vdeRnIeJ.png" /></figure><h3>Installation of software in EC2 Instance.</h3><p>As we launched our EC2 instance successfully, Lets install some software in our instance and test it. We will install <strong>Java 11</strong> and <strong>Tomcat Server 9</strong> for now.</p><ul><li>Go to your instance list, Do right click on instance ID and click on connect.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_wnbE8pZShOPorxf.png" /></figure><ul><li>Go to SSH client tab and copy the Example’s url.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bW7qhQJTbChKAA9R.png" /></figure><ul><li>Now open any terminal from that folder where your pem file located (recommended to use Git Bash) and paste the copied url in terminal.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/0*4vIOGcMi6O2Sfv1R.png" /></figure><ul><li>If your instance is running properly, It will get connected through the terminal and you will see the above similar output in your console.</li><li>Now we will provide the root permission by using<strong> </strong><strong>sudo su </strong>command.</li><li>After that we will use <strong>apt-get update </strong>to download and install the updates for each outdated package and dependency in our system (OS which is installed in EC2 instance).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/0*aFdodLelKgUgQMFv.png" /></figure><h3>Install Java</h3><ul><li>Execute the command to install the JDK. It will also install the JRE.</li></ul><pre>apt install openjdk-11-jdk</pre><ul><li>Verify the installation with the <strong>java -version</strong> command.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*sfc9tAQVi9bMhlUy.png" /></figure><h3>Install Tomcat Server</h3><ul><li>We will install Tomcat Server with specific users and permission. But before that we will create a separate user account to run the tomcat web server in our Ubuntu system. This will be good for security purposes.</li><li>To create account execute :</li></ul><pre>useradd -m -d /opt/tomcat -U -s /bin/false tomcat</pre><ul><li>The above command will create a user and group with the name “<strong>tomcat</strong>” in our system.</li><li>To download the specific version of tomcat execute</li></ul><pre>wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.86/bin/apache-tomcat-9.0.73.tar.gz</pre><ul><li>Here I am using downloading the tomcat version 9.0.73.</li><li>Once the file is downloaded, extracted the archive file and copy all content to the tomcat home directory by executing command respectively.</li></ul><pre>tar xzf apache-tomcat-9.0.86.tar.gz<br>sudo mv apache-tomcat-9.0.86/* /opt/tomcat/</pre><ul><li>Also, set the proper ownership of all files by executing command.</li></ul><pre>sudo chown -R tomcat:tomcat /opt/tomcat/</pre><ul><li>Now create two folders under <strong>/opt/tomcat/conf/ </strong>by executing command.</li></ul><pre>cd /opt/tomcat/conf/<br>mkdir -p /opt/tomcat/conf/Catalina/localhost</pre><ul><li>Create a manager.xml file</li></ul><pre>sudo touch /opt/tomcat/conf/Catalina/localhost/manager.xml</pre><ul><li>Add the following code by executing</li></ul><pre>sudo nano /opt/tomcat/conf/Catalina/localhost/manager.xml</pre><pre>&lt;Context privileged=&quot;true&quot; antiResourceLocking=&quot;false&quot;<br>         docBase=&quot;{catalina.home}/webapps/manager&quot;&gt;<br>    &lt;Valve className=&quot;org.apache.catalina.valves.RemoteAddrValve&quot; allow=&quot;^.*$&quot; /&gt;<br>&lt;/Context&gt;</pre><ul><li>Then create host-manager xml file under</li></ul><pre>touch /opt/tomcat/conf/Catalina/localhost/host-manager.xml<br>sudo nano /opt/tomcat/conf/Catalina/localhost/host-manager.xml</pre><pre>&lt;Context privileged=&quot;true&quot; antiResourceLocking=&quot;false&quot;<br>         docBase=&quot;${catalina.home}/webapps/host-manager&quot;&gt;<br>    &lt;Valve className=&quot;org.apache.catalina.valves.RemoteAddrValve&quot; allow=&quot;^.*$&quot; /&gt;<br>&lt;/Context&gt;</pre><ul><li>Now, configure tomcat with user accounts to secure access of admin/manager pages.</li></ul><pre>sudo nano /opt/tomcat/conf/tomcat-users.xml</pre><pre>&lt;tomcat-users&gt;<br>    &lt;!-- user manager can access only manager section --&gt;<br>    &lt;role rolename=&quot;manager-gui&quot; /&gt;<br>    &lt;user username=&quot;your_username&quot; password=&quot;your_password&quot; roles=&quot;manager-gui&quot; /&gt;<br><br>    &lt;!-- user admin can access manager and admin section both --&gt;<br>    &lt;role rolename=&quot;admin-gui&quot; /&gt;<br>    &lt;user username=&quot;admin&quot; password=&quot;password@123&quot; roles=&quot;manager-gui,admin-gui&quot; /&gt;<br>&lt;/tomcat-users&gt;</pre><ul><li>Tomcat provides bash scripts to start, stop service. But, to make it simple, create a startup script to manage Tomcat as <strong>systemd </strong>service.</li></ul><pre>sudo nano /etc/systemd/system/tomcat.service</pre><ul><li>add the following content:</li></ul><pre>[Unit]<br>Description=Tomcat<br>After=network.target<br><br>[Service]<br>Type=forking<br><br>User=tomcat<br>Group=tomcat<br><br>Environment=&quot;JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64&quot;<br>Environment=&quot;JAVA_OPTS=-Djava.security.egd=file:///dev/urandom&quot;<br>Environment=&quot;CATALINA_BASE=/opt/tomcat&quot;<br>Environment=&quot;CATALINA_HOME=/opt/tomcat&quot;<br>Environment=&quot;CATALINA_PID=/opt/tomcat/temp/tomcat.pid&quot;<br>Environment=&quot;CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC&quot;<br><br>ExecStart=/opt/tomcat/bin/startup.sh<br>ExecStop=/opt/tomcat/bin/shutdown.sh<br><br>[Install]<br>WantedBy=multi-user.target</pre><ul><li>Reload the systemd daemon service to apply changes</li></ul><pre>sudo systemctl daemon-reload</pre><ul><li>Enable the server by executing</li></ul><pre>sudo systemctl enable tomcat</pre><ul><li>Then, Start Tomcat service on your system by executing</li></ul><pre>sudo systemctl start tomcat</pre><ul><li>Its done! We installed the Java and Tomcat Server in our EC2 Instance’s OS.</li><li>Let’s test the installation by hitting our <strong>Public IPv4 address (Elastic IP) </strong>with <strong>port 8080</strong> as by default tomcat is running on 8080 port number.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*k_zyHcerWATm1k02.png" /></figure><ul><li>As you can see in the above image, It should load the Tomcat default page but it is not loading even our tomcat status is active.</li><li>Check the status of the Tomcat service:</li></ul><pre>sudo systemctl status tomcat</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o5RvkZgtjMN4_aSZ.png" /></figure><ul><li>Here, Security Groups comes into the picture. There are two types of Rules in security groups, Inbound and Outbound rules.</li><li><strong>Inbound rules</strong> control the incoming traffic to our instance, and <strong>outbound rules</strong> control the outgoing traffic from our instance.</li><li>Here we want to access 8080 port number in our instance. Therefore, To allow the incoming traffic to our instance, It is required to allow that port under <strong>Inbound rules.</strong></li><li>Go to the Instance details, Click on <strong>Security </strong>section and click on your <strong>security group.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WzT3jkeYkWsDt0kD.png" /></figure><ul><li>Go to the Inbound rules tab and click on Edit inbound rules button.</li><li>Click on Add Rule, Then select Type is <strong>Custom TCP</strong>, Port Range <strong>8080 </strong>and source <strong>Anywhere-IPv4</strong>. Click on Save Rules.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*975N2iMbH3V1CIUg.png" /></figure><ul><li>Now reload your page and you will see the Tomcat default page which means security group successfully allow the incoming traffic with port number <strong>8080.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*63Gz1OyRAMMaAxjM.png" /></figure><ul><li>You can access <strong>Manager</strong> and <strong>Host Manager </strong>page by providing their credentials which was setup during installation of tomcat.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cmkc7SXVK6Pvdgax.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LcEFgrVcrO-wLg5t.png" /></figure><ul><li>If you are getting <strong>403 error</strong> while accessing <strong>manager </strong>or <strong>host-manager </strong>pages then execute below command and do comment <strong>value element</strong> line for <strong>both manager and host-manager</strong> which are under <strong>webapps </strong>folder.</li></ul><pre>sudo find / -name context.xml</pre><ul><li>To edit manager’s context file, Execute and comment the below codes and save it :</li></ul><pre>sudo nano /opt/tomcat/webapps/manager/META-INF/context.xml</pre><pre>&lt;!-- &lt;Valve className=&quot;org.apache.catalina.valves.RemoteAddrValve&quot;<br>         allow=&quot;127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1&quot; /&gt; --&gt;</pre><ul><li>To edit manager’s context file, Execute and comment the below codes and save it :</li></ul><pre>sudo nano /opt/tomcat/webapps/host-manager/META-INF/context.xml</pre><pre>&lt;!-- &lt;Valve className=&quot;org.apache.catalina.valves.RemoteAddrValve&quot;<br>         allow=&quot;127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1&quot; /&gt; --&gt;</pre><p>That’s it ! You will not face <strong>403 error</strong> again when you try to access manager and host manager pages.</p><h3>Conclusion</h3><p>In this article, I explained how to launch, configure, and manage an EC2 instance for a Java environment on AWS. In my next article, I will cover the deployment process of a Java application to an AWS EC2 server using a Jenkins pipeline.</p><p>I hope you found this article useful. Giving it a ‘clap’ will surely encourage me to write more articles and share my knowledge.</p><ul><li>Enter the name of your instance and choose your specific OS Image (Amazon Machine Image) like Windows, Ubuntu, macOS etc. Amazon provides some <strong>Free tier eligible OS </strong>and you can choose any of them for your learning purpose.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e96c5eb5ecf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying WordPress on AWS EC2: Step-by-Step Guide with Command Line Instructions]]></title>
            <link>https://medium.com/@manavmandli2990/deploying-wordpress-on-aws-ec2-step-by-step-guide-with-command-line-instructions-d4f7fa059d0a?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4f7fa059d0a</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 18:45:47 GMT</pubDate>
            <atom:updated>2024-02-23T18:45:47.884Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction:</p><p>Deploying WordPress on Amazon Web Services (AWS) EC2 offers scalability and flexibility for your website. This step-by-step guide, complete with command line instructions, simplifies the deployment process, empowering you to launch your WordPress site on AWS EC2 efficiently. Let’s dive into the details and get your WordPress project up and running in no time!</p><ol><li>Launching an AWS EC2 Instance:</li></ol><ul><li>Command:</li></ul><pre>aws ec2 run-instances --image-id ami-XXXXXXXX --instance-type t2.micro --key-name my-key-pair --security-group-ids sg-XXXXXXXX --subnet-id subnet-XXXXXXXX --associate-public-ip-address</pre><p>Explanation: This command creates an EC2 instance with the specified parameters, including the AMI ID, instance type, key pair, security group, and subnet.</p><p>2. Connecting to Your EC2 Instance via SSH:</p><ul><li>Command:</li></ul><pre>ssh -i /path/to/your/key.pem ec2-user@your-instance-public-ip</pre><p>Explanation: Use SSH to connect to your EC2 instance using the provided key pair and instance’s public IP address.</p><p>3. Installing LAMP Stack on EC2:</p><ul><li>Commands:</li></ul><pre>sudo yum update -y<br>sudo yum install -y httpd24 php73 mysql57-server php73-mysqlnd<br>sudo service httpd start<br>sudo chkconfig httpd on<br>sudo groupadd www<br>sudo usermod -a -G www ec2-user<br>sudo chown -R root:www /var/www<br>sudo chmod 2775 /var/www<br>find /var/www -type d -exec sudo chmod 2775 {} +<br>find /var/www -type f -exec sudo chmod 0664 {} +</pre><p>4. Setting Up WordPress:</p><ul><li>Commands:</li></ul><pre>cd /var/www/html<br>sudo wget https://wordpress.org/latest.tar.gz<br>sudo tar -xzf latest.tar.gz<br>sudo cp -r wordpress/* .<br>sudo rm -rf wordpress latest.tar.gz<br>sudo chown -R apache:apache /var/www/html/</pre><p>5. Creating MySQL Database and User for WordPress:</p><ul><li>Commands:</li></ul><pre>sudo service mysqld start<br>sudo mysql -e &quot;CREATE DATABASE wordpress;&quot;<br>sudo mysql -e &quot;CREATE USER &#39;wpuser&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;yourpassword&#39;;&quot;<br>sudo mysql -e &quot;GRANT ALL PRIVILEGES ON wordpress.* TO &#39;wpuser&#39;@&#39;localhost&#39;;&quot;<br>sudo mysql -e &quot;FLUSH PRIVILEGES;&quot;</pre><p>6. Configuring WordPress:</p><ul><li>Commands:</li></ul><pre>mv wp-config-sample.php wp-config.php<br>sudo sed -i &#39;s/database_name_here/wordpress/g&#39; wp-config.php<br>sudo sed -i &#39;s/username_here/wpuser/g&#39; wp-config.php<br>sudo sed -i &#39;s/password_here/yourpassword/g&#39; wp-config.php</pre><p>7. Completing WordPress Installation:</p><p>Instructions:</p><ul><li>Access your WordPress site via a web browser using your EC2 instance’s public IP address.</li><li>Follow the on-screen instructions to complete the WordPress installation, including providing site information and creating an admin account.</li></ul><p>Conclusion:</p><p>With this comprehensive guide and command line instructions, you’ve successfully deployed WordPress on AWS EC2. From launching the instance to configuring WordPress and completing the installation, every step has been simplified for your convenience. Enjoy the scalability and flexibility of AWS EC2 while running your WordPress site, and streamline your deployment process with this step-by-step guide!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4f7fa059d0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here is a list of some common Docker commands used in DevOps:]]></title>
            <link>https://medium.com/@manavmandli2990/here-is-a-list-of-some-common-docker-commands-used-in-devops-fbe1cf6891d5?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbe1cf6891d5</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 18:30:11 GMT</pubDate>
            <atom:updated>2024-02-23T18:30:11.468Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>docker build: Builds an image from a Dockerfile.</li></ol><p>Example: docker build -t myapp .</p><p>2. docker run: Runs a command in a new container.</p><p>Example: docker run -it myapp bash</p><p>3. docker pull: Pulls an image or a repository from a registry.</p><p>Example: docker pull nginx</p><p>4. docker push: Pushes an image or a repository to a registry.</p><p>Example: docker push myusername/myimage</p><p>5. docker images: Lists all locally available Docker images.</p><p>Example: docker images</p><p>6. docker ps: Lists all running containers.</p><p>Example: docker ps</p><p>7. docker ps -a: Lists all containers, including those that are stopped.</p><p>Example: docker ps -a</p><p>8. docker exec: Runs a command in a running container.</p><p>Example: docker exec -it mycontainer bash</p><p>9. docker stop: Stops one or more running containers.</p><p>Example: docker stop mycontainer</p><p>10. docker rm: Removes one or more containers.</p><p>Example: docker rm mycontainer</p><p>11. docker rmi: Removes one or more images.</p><p>Example: docker rmi myimage</p><p>12. docker-compose up: Builds, (re)creates, starts, and attaches to containers for a service.</p><p>Example: docker-compose up -d</p><p>13. docker-compose down: Stops and removes containers, networks, volumes, and images created by up.</p><p>Example: docker-compose down</p><p>14. docker logs: Fetches the logs of a container.</p><p>Example: docker logs mycontainer</p><p>15. docker network: Manages Docker networks.</p><p>Example: docker network ls</p><p>These are just a few examples of commonly used Docker commands in DevOps. Depending on your specific use case and requirements, you may need to use additional commands or options. Make sure to refer to the Docker documentation for comprehensive information on all available commands and their usage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbe1cf6891d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to 10 Essential On-Page SEO Techniques]]></title>
            <link>https://medium.com/@manavmandli2990/a-beginners-guide-to-10-essential-on-page-seo-techniques-442799725ffd?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/442799725ffd</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 18:14:41 GMT</pubDate>
            <atom:updated>2024-02-23T18:14:41.191Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction</p><p>On-page SEO is a fundamental aspect of website optimization that focuses on optimizing various elements on individual web pages to improve search engine rankings and drive organic traffic. In this beginner’s guide, we will explore 10 essential on-page SEO techniques that every website owner should master to enhance their online visibility.</p><p>What is On-Page SEO?</p><p>On-page SEO refers to the practice of optimizing the content and HTML source code of a webpage to make it more search engine friendly and improve its visibility in search engine results pages (SERPs).</p><p>Importance of On-Page SEO for Website Optimization</p><p>Effective on-page SEO can significantly impact your website’s performance in search engine rankings, boosting organic traffic and attracting more potential customers to your site.</p><p>Overview of the 10 Essential Techniques</p><p>Let’s dive into the key on-page SEO techniques that will help you optimize your website for better search engine visibility.</p><p>I. Keyword Research and Optimization</p><p>Effective keyword research is the foundation of successful on-page SEO. By understanding your target audience’s search behavior and preferences, you can create content that resonates with them and drives relevant traffic to your site.</p><p>* Conduct thorough keyword research using tools like Google Keyword Planner, SEMrush, or Ahrefs.<br>* Incorporate relevant keywords into your page titles, meta descriptions, and headings.<br>* Use keywords naturally throughout your website content to enhance readability and SEO performance.</p><p>II. Content Quality and Relevance</p><p>High-quality, engaging content is key to attracting and retaining visitors on your site. By creating valuable content that resonates with your target audience, you can improve user experience and boost search engine rankings.</p><ul><li>Create unique and informative content that adds value to your target audience.<br>* Ensure your content is relevant and aligned with the needs and interests of your target audience.<br>* Avoid keyword stuffing and duplicate content, which can harm your SEO efforts.</li></ul><p>III. Meta Tags and Meta Descriptions</p><p>Optimizing meta tags and descriptions is essential for improving your website’s visibility in search engine results pages and increasing click-through rates from organic search.</p><p>* Optimize your meta tags with relevant keywords to improve search engine rankings.<br>* Craft compelling meta descriptions that entice users to click on your website.<br>* Utilize meta tags effectively to enhance your overall SEO performance.</p><p>IV. URL Structure and Internal Linking</p><p>An optimized URL structure and strategic internal linking can improve your site’s visibility in search engine results and enhance user experience.</p><p>* Optimize your URL structure for search engine visibility and user-friendliness.<br>* Implement strategic internal linking to improve site navigation and user engagement.<br>* Consistently apply linking practices throughout your website to improve SEO performance.</p><p>V. Image Optimization and Alt Text</p><p>Image optimization plays a crucial role in improving website performance and SEO rankings by enhancing page load speeds and enriching user experience.</p><p>* Optimize images for faster loading speeds and better user experience.<br>* Use relevant keywords in image alt text to improve search engine visibility.<br>* Increase SEO value through advanced image optimization techniques.</p><p>VI. Mobile-Friendly Design and Page Speed</p><p>Mobile-friendly design and optimized page speed are critical factors in improving user experience and search engine rankings.</p><p>* Ensure your website is mobile-friendly to enhance SEO ranking and user experience.<br>* Improve page speed for better user engagement and search engine visibility.<br>* Test your website performance across devices and browsers to ensure optimal user experience.</p><p>VII. Schema Markup and Structured Data</p><p>Implementing schema markup and structured data can help search engines better understand your website content and improve visibility in search results.</p><p>* Understand the role of schema markup in enhancing SEO and improving search engine visibility.<br>* Implement structured data to provide search engines with additional context about your content.<br>* Keep schema markup up to date to ensure continued SEO success.</p><p>VIII. Social Media Integration and Sharing</p><p>Leveraging social media platforms for website visibility and encouraging social sharing of your content can improve your overall SEO performance.</p><p>* Use social media platforms to increase your website visibility and reach a broader audience.<br>* Encourage social sharing of your website content to boost organic traffic and engagement.<br>* Monitor social media engagement to measure the impact on your website’s SEO performance.</p><p>IX. User Experience and Site Navigation</p><p>Enhancing user experience through intuitive site navigation and improved accessibility is crucial for boosting user engagement and SEO rankings.</p><p>* Improve user experience through intuitive site navigation and clear calls to action.<br>* Enhance website accessibility to cater to all users, including those with disabilities.<br>* Conduct user testing to identify areas for improvement and optimize user experience.</p><p>X. Conclusion</p><p>In conclusion, mastering the 10 essential on-page SEO techniques outlined in this guide is vital for improving website visibility, attracting more organic traffic, and enhancing search engine rankings. By focusing on keyword optimization, content quality, meta tags, URL structure, image optimization, mobile-friendliness, schema markup, social media integration, and user experience, you can elevate your SEO performance and achieve better results.</p><p>FAQs:</p><p>1. Why is on-page SEO important for website optimization?<br> On-page SEO plays a critical role in improving search engine rankings and driving organic traffic to your website by optimizing various elements on the page itself.<br>2. How can I measure the success of my on-page SEO efforts?<br> You can track the performance of your on-page SEO techniques by monitoring keyword rankings, organic traffic growth, bounce rates, and user engagement metrics.<br>3. Are there any tools available to help with on-page SEO optimization?<br> Yes, there are several tools like Google Search Console, SEMrush, Moz, and Ahrefs that can assist you in conducting keyword research, analyzing website performance, and optimizing on-page elements for SEO.</p><p>Remember, mastering on-page SEO is an ongoing process that requires continuous optimization and improvement. By implementing these essential techniques and staying up to date with the latest SEO trends, you can enhance your website’s visibility, attract more organic traffic, and achieve long-term success in search engine rankings. Happy optimizing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=442799725ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy a Django Application on EC2 Instance with Nginx and Gunicorn]]></title>
            <link>https://medium.com/@manavmandli2990/deploy-a-django-application-on-ec2-instance-with-nginx-and-gunicorn-310129e77879?source=rss-3b463e57b92d------2</link>
            <guid isPermaLink="false">https://medium.com/p/310129e77879</guid>
            <dc:creator><![CDATA[Manav Mandli]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 18:55:47 GMT</pubDate>
            <atom:updated>2024-01-28T19:00:41.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uY7gVY-vL-cW_S51MFFxg.png" /></figure><h3>Requirements:</h3><ol><li>AWS EC2 Instance:</li></ol><ul><li>Launch an EC2 instance using the AWS Management Console.</li><li>Choose your operating system (e.g., Ubuntu) and configure security groups to allow traffic on ports 80 and 22 (HTTP and SSH).</li></ul><p>2. Django Application:</p><ul><li>Have a working Django web application on your local machine.</li><li>Push your project to GitHub.</li></ul><h3>Step 1: Connect to Your EC2 Instance</h3><p>SSH into your instance using your private key:</p><pre>ssh -i /path/to/your/key.pem ubuntu@your_ec2_ip</pre><h3>Step 2: Update Your System</h3><p>Update and upgrade your system:</p><pre>sudo apt update<br>sudo apt upgrade</pre><h3>Step 3: Install Required Software</h3><p>Install necessary software:</p><pre>sudo apt install python3-pip python3-venv nginx supervisor<br>sudo service nginx start</pre><h3>Step 4: Set Up a Virtual Environment</h3><p>Create and activate a virtual environment:</p><pre>python3 -m venv env<br>source env/bin/activate</pre><h3>Step 5: Clone/Upload Website Files</h3><p>Clone from GitHub or upload your project files:</p><pre>git clone https://github.com/your_username/your_repo.git<br># or using SCP<br>scp -i /path/to/your/key.pem file.zip ubuntu@your_ec2_ip:/home/ubuntu</pre><h3>Step 6: Install Gunicorn and Dependencies</h3><p>Install dependencies using a requirements.txt file:</p><pre>pip install -r /path/to/your/project/requirements.txt<br>pip install gunicorn</pre><h3>Step 7: Configure Gunicorn</h3><p>Create a Gunicorn configuration file:</p><pre>cd /etc/supervisor/conf.d/<br>sudo touch gunicorn.conf<br>sudo nano gunicorn.conf</pre><p>Add the following:</p><pre>[program:gunicorn]<br>directory=/home/ubuntu/your_project_directory<br>command=/home/ubuntu/env/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/your_project_directory/app.sock your_project_name.wsgi:application<br>autostart=true<br>autorestart=true<br>stderr_logfile=/var/log/gunicorn/gunicorn.err.log<br>stdout_logfile=/var/log/gunicorn/gunicorn.out.log<br><br>[group:guni]<br>programs:gunicorn</pre><h3>Step 8: Create Error Log Folders</h3><p>Create error log folders:</p><pre>sudo mkdir /var/log/gunicorn</pre><h3>Step 9: Update Supervisor Service</h3><p>Update Supervisor service:</p><pre>sudo supervisorctl reread<br>sudo supervisorctl update<br>sudo supervisorctl status</pre><h3>Step 10: Update Nginx User</h3><p>Update the user in nginx.conf:</p><pre>sudo vi /etc/nginx/nginx.conf<br># Edit the line with &gt;&gt; user www-data; to &gt;&gt; user root;</pre><h3>Step 11: Create Django Configuration for Nginx</h3><p>Create a configuration file for Nginx:</p><pre>cd /etc/nginx/sites-available/<br>sudo vi django.conf</pre><p>Add the following:</p><pre>server {<br>    listen 80;<br>    server_name your_domain_or_ip;<br><br>    location /static/ {<br>        root /home/ubuntu/your_project_directory;<br>    }<br><br>    location / {<br>        include proxy_params;<br>        proxy_pass http://unix:/home/ubuntu/your_project_directory/app.sock;<br>    }<br>}</pre><p>Test the Nginx configuration:</p><pre>sudo nginx -t</pre><h3>Step 12: Enable Nginx Configuration</h3><p>Create a symbolic link to the Nginx configuration:</p><pre>sudo ln django.conf /etc/nginx/sites-enabled<br>sudo service nginx restart</pre><p>Now your Django application should be accessible. If you encounter errors, check and restart Supervisor and Nginx services:</p><pre>sudo service supervisor restart<br>sudo service nginx restart</pre><p>For redirecting the server IP to the domain name, you can modify the Nginx configuration file accordingly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=310129e77879" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>