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

How to Setup password less SSH Authentication in Linux

  • 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:

How to Sync Folder & files from One server to Another Server

Rsync Copy Files & Folder through SSH

  • Install Rsync in Both Server

[root@testsvr01 ~]# yum install -y rsync

[root@testsvr02 ~]# yum install -y rsync

  • Run below command for Sync files and Folder

[root@testsvr01 ~]# rsync -v -r -e ssh --progress /opt/soruce_dir/* root@testsvr02:/opt/dest_dir/

How to move (copy) Files and Folder to Another Location using Rsync

Install Rsync CLI Tools

[root@testsvr01 ~]# yum install rsync -y

Move Files and Folder to Another Location using Rsync

[root@testsvr01 ~]# rsync -avzi  --delete --progress /opt/soruce_dir/ /opt/destination_dir/

Copy Files and Folder to Another Location using Rsync

[root@testsvr01 ~]# rsync -avzu --progress /opt/soruce_dir/ /opt/destination_dir/

Subscribe to