Uncategorized

Find Exact Installation Date And Time Of Your Linux OS

On Fedora, RHEL and its clones such as CentOS, Scientific Linux, Oracle Linux, you can find it using the following command: rpm -qi basesystem Sample output [[email protected] ~]# rpm -qi basesystemName : basesystemVersion : 10.0Release : 7.el7.centosArchitecture: noarchInstall Date: Thu 29 Mar 2018 05:05:32 PM ISTGroup : System Environment/BaseSize : 0License : Public DomainSignature : ...

Uncategorized

HTTP download speed difference in windows vs Linux

HTTP download speed difference in windows 7 vs Linux I have a strange situation regarding a Windows PC which is showing limited internet transfer speeds for no apparent reason. If I am performing the same test on Linux box then I am getting good speed.   Upon intense debugging, I am able to diagnose and find out ...

Uncategorized

How to upgrade ubuntu 16.04 to ubuntu 18.04 ?

How to upgrade ubuntu 16.04 to ubuntu 18.04 ? Check Ubuntu version before upgrading. lsb_release -a First, we have to run an update sudo apt update Then run upgrade command sudo apt upgrade After that dist-upgrade sudo apt dist-upgrade Then update core manager sudo apt install update-manager-core Then edit below file  sudo vim /etc/update-manager/release-upgrades At ...

CPanel / WHM

Resetting email account password from Command line in cPanel

Resetting email account password from Command line in cPanel 1) Login to the server as root via SSH 2) Run the command “openssl” and you will see this: [email protected] [~]# openssl OpenSSL> 3) Now in the OpenSSL prompt give the command : passwd -1 “your_new_email_password” [email protected] [~]# openssl OpenSSL> passwd -1 “[email protected]” $1$m4pq941w/j$1KYI5VwHl8C6h9H6ScTFNWy/ OpenSSL> quit Please note ...

CPanel / WHM, Installation

cPanel EasyApache 4 Installing Redis and Redis PHP extension

cPanel EasyApache 4 Installing Redis and Redis PHP extension Installing the Redis daemon: for CentOS 6/RHEL 6 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm yum -y install redis --enablerepo=remi --disableplugin=priorities chkconfig redis on service redis start for CentOS 7/RHEL 7 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm yum -y install redis --enablerepo=remi --disableplugin=priorities systemctl enable redis systemctl ...

CPanel / WHM, Installation, Uncategorized

command to activate VG on LVM?

Command to activate VG on LVM? When you create a volume group, by default, it is activated. Sometimes you may need to activate it manually to make the kernel aware of volume groups. To activate, # vgchange -ay my_vg_name To De-activate, # vgchnage -an my_vg_name A command to activate the VG in a cluster? To ...

Control Panel, CPanel / WHM, Tweaks

Optimize MySQL & Apache on cPanel/WHM server

Optimize MySQL & Apache on cPanel/WHM server On this optimization process, we will go over the Apache core configuration and modules that are part of Apache core. We think that with the correct settings of Apache and MySQL you can get excellent results and the correct level of resource use without installing third-party proxy and cache modules. ...

Plesk, Uncategorized

How to get mail statistics from your postfix mail logs

How to get mail statistics from your postfix mail logs   Its an amazing tool and will provide you the following details Total number of: Messages received, delivered, forwarded, deferred, bounced and rejected Bytes in messages received and delivered Sending and Recipient Hosts/Domains Senders and Recipients Optional SMTPD totals for number of connections, number of ...

CPanel / WHM, Installation

Can't locate DateTime perl module

If you are getting below error while installing any application on linux then perl date time module is missing. Can't locate DateTime. pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at gatherbot_en.pl line 13. BEGIN failed--compilation aborted at gatherbot_en.pl line 13. You can use below command to install Datetime on server. yum install perl-DateTime-TimeZone After that if you are getting below error. Can't locate Date/Parse.pm in @INC Then please run below command. It will ...

Cloud Linux, CPanel / WHM, Tweaks

How to change the color of your BASH prompt

How to change the color of your BASH prompt You can change the color of your BASH prompt to green with this command: export PS1="\e[0;32m[\[email protected]\h \W]\$ \e[m" It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page. vi ~/.bash_profile and paste above code save the file and you ...