How to Configure PHP 7.4 in RHEL 8.4 Server

This step should have been completed upon the installation of RHEL 8.4, but if you haven’t, you can complete it with:

Update

 

# yum update

 

Now you are ready to install PHP 7.4 :

 

Check Available PHP Versions

# dnf module list php

 

Enable PHP 7.4 Module

# dnf module switch-to php:7.4

 

Install PHP and Dependancy Modules

# yum install php php-cli php-common

 

 

How to include PHPMailer Library in Drupal 8

 

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

Change default SSH Port in Centos 7

 

To change the port for the SSH server, follow these steps:

  • Log in to the server as root 
  • Open the /etc/ssh/sshd_config file in your preferred text editor 
  • Locate the following line: Port 22 and changed to New Port 2233
  • Restart SSHD Service.

 

Use the following command for enabling additional SSH Port

sed -i 's/#Port 22/Port 22\nPort 2233/g' /etc/ssh/sshd_config

 

Firewall Configuration

How to install MySQL 5.7 in Centos 7 Server

 

This step should have been completed upon the installation of MySQL 5.7, but if you haven’t, you can complete it with:

System Updates

yum update

 

Install Repository

yum -y install yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

 

Now you are ready to install MySQL 5.7 with:

yum -y install mysql-community-server

 

Firewall Configuration

How to Install Stable Nginx on RHEL9

  • Add Nginx Stable Repo

[root@testsvr01 ~]# vi /etc/yum.repos.d/nginx.repo

[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true

  • Install Nginx Stable 

root@testsvr01 ~]#  yum install nginx -y

[root@testsvr01 ~]# nginx -v
nginx version: nginx/1.24.0
 

Subscribe to