How to Remove Old Kernel from RHEL Server

[root@testsvr01~]# rpm -q kernel
kernel-3.10.0-1160.15.2.el7.x86_64
kernel-3.10.0-1160.21.1.el7.x86_64
kernel-3.10.0-1160.24.1.el7.x86_64
kernel-3.10.0-1160.36.2.el7.x86_64
kernel-3.10.0-1160.71.1.el7.x86_64
[root@ehapp01 ~]# package-cleanup --oldkernels --count=1
Loaded plugins: fastestmirror, langpacks
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-1160.15.2.el7 will be erased
---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased

PostgreSQL 12 Installation in RHEL8 Server

[root@testdbsvr01~]# dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
[root@testdbsvr01~]# dnf -qy module disable postgresql

 

[root@testdbsvr01~]# dnf install -y postgresql12-server

[root@testdbsvr01~]# dnf install -y postgresql12-contrib

[root@testdbsvr01~]# /usr/pgsql-12/bin/postgresql-12-setup initdb
Initializing database ... OK

How to Create Linux Service for Python Flask app - RHEL

  • Create New flaskapp.service File Under /etc/systemd/system/ Directory

[root@pythonsvr01 ~]# vi /etc/systemd/system/flaskapp.service
[Unit]
Description=Flask Python Application Container
After=network.target

[Service]
Type=idle

Environment=CONFIGURATION_SETUP=config.ProductionConfig
Environment=FLASK_ENV=production

ExecStart=/bin/bash -c '/usr/bin/python3.6 /opt/flaskapp/app.py'
ExecStop=/bin/kill -15 $MAINPID

How to add PHPMailer Library in Drupal 9

 

This step should have been completed upon the installation of Drupal 8 for getting PHPMailer function

Install Composer

# curl -sS https://getcomposer.org/installer | php

 

Move Composer binary to usr bin path

# mv composer.phar /usr/bin/composer

 

Check Composer Version

# composer --version

 

Go to Drupal root Directory and execute

Drupal Installation Directory - /var/www/html

Subscribe to