Topics Based on Linux related articles

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

Upgrade PHP 7.4 to 8.1 in Centos / RHEL 7 Server

  • Check Current PHP Version

[root@testsvr01 ~]# php -v
PHP 7.4.33 (cli) (built: Oct 31 2022 10:36:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

  • Install yum utils 

[root@testsvr01 yum.repos.d]# yum -y install yum-utils

Subscribe to Linux