Django is one of the frameworks used along with python to create the web pages in an efficient manner. It is also called as the framework included with batteries why because by default the Django framework gives the admin interface and database interface like SQLite 3 etc. It also provides us the default readymade components namely user authentication handling like sign in, signup and sign out. It provides the management panel for our website, forms, uploading the files etc. Why are we using the Django framework? Django is known for its scalability and comprehensive documentation. This framework is used by ... Read More
OOPs is abbreviated as object oriented programming language. It helps us to deal with the real time entities with inheritance, polymorphism, encapsulation etc. By using the oops concept we can make the code and functions work together in a better way. Group of objects is called a class. The class contains the blueprint, which takes as the reference to create the object. This contains attributes and methods in a logical entity. Now let’s see why we have to split the code into multiple classes. If we create the entire code in the single class, it will be easy to write ... Read More
There are different modules or packages in the python classes. When we use their names as it is in the code it will be somewhat clumsy and not good to see. So, we need to organize the python classes in modules and packages. Modules are the group of functions, classes or any block of code kept in a single file. The file extension of the methods will be .py. If the python code is with 300-400 lines of code, then it can be made as a module for better understandability. The module name can be available as ... Read More
In today's world of internet security, enabling HTTPS on your website is crucial to ensure the privacy and safety of your users' data. One way to achieve this is by using Varnish Cache and Hitch, a lightweight TLS proxy, to offload SSL/TLS processing from Varnish. In this article, we will guide you through the process of enabling HTTPS for Varnish Cache using Hitch on CentOS/RHEL 8. Prerequisites Before we begin, ensure that you have the following − A CentOS/RHEL 8 server Root access to the server Varnish Cache and Hitch installed A valid SSL/TLS certificate and private key ... Read More
HTTP/2 is the latest version of the HTTP protocol, which is designed to improve website performance and security. Nginx is a popular web server that supports HTTP/2. If you're using Nginx and want to enable HTTP/2 for your website, this article will guide you through the process. Step 1: Check Nginx Version Before enabling HTTP/2, you should check the version of Nginx installed on your system. To do this, run the following command − nginx -v This command will display the version of Nginx installed on your system. If you have a version of Nginx that is 1.9.5 or ... Read More
HTTP/2.0 is the latest version of the HTTP protocol that offers significant performance improvements over its predecessor, HTTP/1.1. Enabling HTTP/2.0 on your Apache web server can enhance the speed and responsiveness of your website, resulting in a better user experience for your visitors. In this article, we will guide you through the steps to enable HTTP/2.0 on Apache on Ubuntu. Step 1: Check Apache Version Before enabling HTTP/2.0, it is essential to ensure that your Apache version is compatible with HTTP/2.0. To check your Apache version, run the following command in your terminal − apache2 -v The output will ... Read More
Desktop sharing or remote desktop access is a useful feature that allows you to access another computer or device from your own system. This feature is particularly useful when you need to provide technical assistance to someone who is not physically present with you. Ubuntu and Linux Mint are two popular Linux distributions that come with desktop sharing features pre-installed. In this article, we will discuss how to enable desktop sharing in Ubuntu and Linux Mint. Enabling Desktop Sharing in Ubuntu Ubuntu comes with a built-in desktop sharing feature called "Vino". Vino allows you to share your desktop with other ... Read More
If you are running a web server with Apache on RHEL/CentOS, you may need to enable the Userdir module to allow users to create and serve their own web content. The Userdir module enables users to access their own web directories using a URL that starts with http://example.com/~username. Enabling the Apache Userdir module on RHEL/CentOS is a straightforward process that can be completed in just a few steps. In this article, we will show you how to enable the Apache Userdir module on RHEL/CentOS. Step 1: Install Apache Web Server Before you can enable the Userdir module, you need to ... Read More
Firewall is an essential component of any computer system that helps protect against unauthorized access and malicious attacks. On CentOS 7, firewalld is a popular firewall management tool that provides an easy and intuitive way to configure and manage the firewall rules. In this article, we will discuss how to enable and use firewalld on CentOS 7. Enabling Firewalld on CentOS 7 The firewalld service is not enabled by default on CentOS 7. Therefore, before we can use it, we need to enable and start the service. To enable and start the firewalld service, we need to execute the following ... Read More
PHP-FPM (FastCGI Process Manager) is a popular implementation of PHP as a FastCGI process manager. It offers significant performance improvements over the traditional PHP implementation and is widely used in high-traffic websites. Nginx is a popular web server and reverse proxy that can be used to serve PHP applications via PHP-FPM. In this article, we will discuss how to enable and monitor PHP-FPM status in Nginx. Enabling PHP-FPM Status Page PHP-FPM comes with a built-in status page that provides real-time information about the current state of PHP-FPM processes. Enabling the PHP-FPM status page in Nginx is a simple process. First, ... Read More