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 …

Uncategorized

How to extend disk space in windows 2012

How to extend disk space in windows 2012 Login to windows. Click on Start run and type cmd. In windows command prompt. run diskpart.exe DISKPART prompt will come. diskpart >list volume Above command will show list of volumes. Select volume volume number It will select the volume which you want to extend. extend filesystem It …

Uncategorized

dd command to migrate VPS on linux platform

dd command to migrate VPS on linux platform. First create new vps with same configuration on another node. It doesn’t matter new vps is having os or not or you can choose any OS. Once same configuration VPS setup done then use below command to migrate VPS. dd if=/dev/guestos/kvm2351_img | ssh 10.10.10.10 “dd of=/dev/guestos/kvm2520_img” Once migration is …

Control Panel, CPanel / WHM, Installation, MySql

How to replace MySQL with MariaDB in cpanel

Backup existing MySQL data Make sure to save all existing data just in case there are any issues. cp -Rf /var/lib/mysql /var/lib/mysql-old mv /etc/my.cnf /etc/my.cnf-old Disable the targets so cPanel no longer handles MySQL updates The following will mark the versions of MySQL we distribute as uninstalled so they are no longer maintained by cPanel/WHM /scripts/update_local_rpm_versions –edit …

Installation, Security

CVE-2014-7169 BASH Shell Shock Vulnerability for Linux

What is CVE-2014-7169 / Shell Shock Vulnerability? GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, …