Categories
AWS

Install latest Linux Apache MySQL PHP (LAMP) stack on RedHat 9

In this tutorial we have step by step instruction on how to install Apache MySQL and PHP on your RHEL 9.0, Red Hat Enterprise Linux release 9.0 (Plow) . I am using EC2 instance in AWS and launched a RedHat Linux 9 AMI. Note: By default it installs PHP-FPM, an efficient method to configure PHP […]

Categories
AWS ruby

How to install Ruby 2.6 on ARM64 AWS Graviton

Last updated on November 20th, 2022 at 07:57 amThis is a quick tutorial on installing Ruby 2.6 (Old Version) in ARM64 processor architecture. The server specification I am using is in AWS, Find the step by step instruction below Server Setup Install RVM Configure OpenSSL Install Ruby Test Ruby Server Setup Processor Graviton2Type EC2 Instance […]

Categories
Python

How to extract data from HTML using Python

Last updated on November 22nd, 2022 at 10:52 amIn this tutorial we are going to dive deep in to various methods of extracting data between HTML elements using Python and Beautiful Soup Python library. We are also listing all P tags between H2 tags. Without further delay I am going to jump straight in to the […]

Categories
kubernetes

How to deploy MySQL using Persistent volume in Kubernetes

Last updated on August 26th, 2022 at 09:24 amIn this tutorial we are going to deep dive in to deploying MySQL database using persistent volumes. Simple approach without much complexity. Let us break this in to multiple steps for easier understanding What are PODS? Create StatefulSet with Persistent Volume Create MySQL service Test MySQL connectivity […]

Categories
AWS

How to get items from DynamoDB table using PHP

Last updated on August 3rd, 2022 at 08:24 amIn this tutorial we are going to talk more on connecting to Amazon DynamoDB using PHP and getting data from the table. What is DynamoDB? Amazon DynamoDB is a fully managed NoSQL database service. It provide low latency and can be configured with applications for best performance […]

Categories
Python

How to redirect URL in Flask Python with example

In this tutorial we are going to walk through simple steps on how to redirect an URL in Flask Python with HTTP status code. Before we start make sure that you import the redirect section from flask module Redirect With Status Code Below is an example on how to redirect an application route with status […]

Categories
Python

How to connect MySQL using Flask Python

Last updated on June 22nd, 2022 at 02:27 pmIn this tutorial we will deep dive in to how to establish connection between Python Flask and MySQL . In order to make things simpler lets do a step by step approach What is Flask Python? Install flask extensions to connect to MySQL Connecting to MySQL using […]

Categories
AWS Python

How to get temporary credentials using Python AWS IAM

Last updated on May 31st, 2022 at 08:27 amIn this tutorial we are going to see how to write a simple python script to generate temporary credentials from STS. There are two examples below on how to use those temporary credentials one is how to list objects inside an S3 bucket and other is launching […]

Categories
AWS cloudflare Serverless

How to configure AWS API Gateway custom domain in Cloudflare

Last updated on April 27th, 2022 at 07:18 amMillions of websites are hosted on Cloudflare DNS. One of the major challenge for webmasters is to find a way to integrate domains already in Cloudflare with certain AWS services. In this tutorial we are going to retain all the DNS configuration in Cloudflare itself. We are […]

Categories
AWS Python Serverless

How to build serverless web app in Python using AWS Lambda API Gateway

Last updated on March 28th, 2022 at 01:55 pmIn this tutorial we are going to talk more about how to deploy a simple Python web application in AWS Lambda and access it through AWS API Gateway. We are using greedy path variable in API gateway to configure routes and integrated API Gateway with Lambda. Both […]

Categories
faq

How to store data in browser localstorage using Javascript

Last updated on April 12th, 2022 at 09:32 amClient side data storage is a trend now days. window.localStorage or localStorage api can be used to save and get data from browser storage. This API assist developers in saving data to the browser and retrieve it instead of using cookies or may be session(depending on use-cases). […]

Categories
Perl FAQ

How to install perl modules on Ubuntu Linux

Last updated on March 22nd, 2022 at 04:48 pmIt is been a while since I have played around with Perl. But recently got a requirement to install couple of modules for a user management system written in perl (this was in Ubuntu 18.04). I am also discussing about how to do it in RedHat / […]

Categories
Python Ubuntu

Configure Apache web server to run python as cgi

Last updated on March 9th, 2022 at 04:13 amThis tutorial will guide you on configuring and enabling CGI in Apache web server and run python scripts. We need to make use of mod_cgi module to deliver dynamic content. In this tutorial we will configure mod_cgi and run python scripts by configuring CGI (Common Gateway Interface) in […]

Categories
Linux System Ubuntu

How to run perl CGI script in Apache

Last updated on February 28th, 2022 at 10:11 amThis is a step by step guide on how to configure CGI in Apache web server and run perl scripts in linux systems. We are enabling Apache module named mod_cgi to deliver dynamic content and run any programming languages(as a backend) of your choice by simply forwarding […]

Categories
WordPress

How to import GD star rating to YASR plugin in WordPress

In this tutorial I am going to show you how to easily import / migrate your rating system from GD star rating WordPress plugin to Yet Another Star Rating (YASR). Its been a while I have been thinking of migrating to YASR from GD Star rating however realized the hard truth that there was no […]

Categories
Tools

How to install MySQL 8.0 on Red Hat Linux 8

Last updated on September 29th, 2022 at 10:02 amIn this post we will be taking a look at installing MySQL on RHEL , Red Hat Linux 8, You need to enable AppStream from RHUI repo to install MySQL. More information on how to proceed step by step is shown below My server details Red Hat […]

Categories
AWS nginx Python uWSGI

How to run Flask Application with uwsgi behind nginx

Last updated on June 13th, 2022 at 02:28 pmWe are going to configure Nginx to forward request to uWSGI and serve Python applications running on Flask In this post we will discuss in detail on how to configure uWSGi with nginx to run Python application (in flask) in Linux(Ubuntu/Redhat). You can follow the same steps […]

Categories
AWS Python

How to read spreadsheet in S3 using python

Last updated on June 2nd, 2022 at 08:03 amIn this tutorial we will focus on how to read a spreadsheet (excel) in an AWS S3 bucket using Python. Before you jump on to the script please make sure that the below pre-requisites are met IAM user created with sufficient permission to read the S3 bucket. […]