Skip to main content

How to add PHPMailer Library in Drupal 9

Submitted by nidheesh on Thu, 12/08/2022 - 22:43

 

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

Submitted by nidheesh on Tue, 12/06/2022 - 21:59
  • 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

How to Add New Root Privilege user in RHEL/CentOS Server

Submitted by nidheesh on Fri, 12/02/2022 - 23:17
  • Create Sudo / Root Privilege  User

[root@testsvr01 ~]# useradd sysadmin -G wheel

  • Set Password

[root@testsvr01 ~]#  passwd sysadmin
Changing password for user sysadmin. <Password >
New password: <Password >
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.

How to Setup password less SSH Authentication in Linux

Submitted by nidheesh on Wed, 11/30/2022 - 13:43
  • Create RSA Key pair for accessing SSH Service

[root@testserver01 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is: