Category: CPanel / WHM

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 -y After that if you are getting below error. Can’t locate Date/Parse.pm in @INC Then please run below command. It …

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 …

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 …

CPanel / WHM

Default Automatic index page when new account is created in cpanel/WHM

Default Automatic index page when new account is created in cpanel/WHM   We all want to show default index page when new account is setup. Below are the steps: First of all we have to create below  folder. mkdir /root/cpanel3-skel mkdir /root/cpanel3-skel/public_html Create default index page. vi /root/cpanel3-skel/public_html/index.html save and quit the file.   If …

CPanel / WHM

How to Configure Multiple shared IP’s in WHM

How to Configure Multiple shared IP’s in WHM   It is not possible to add multiple shared IP’s from WHM but it is possible to do it from SSH. First of all we need to create a /var/cpanel/mainips/ directory if it is not present. mkdir /var/cpanel/mainips/ Then we have to create a file. vi /var/cpanel/mainips/root …

CPanel / WHM

how to install whmsonic in cpanel

How to install WHMSonic in cpanel   Login to your server root SSH and copy/paste the following command fully and run it. cd /root/; rm -f installr.sh; wget http://www.whmsonic.com/setupr/installr.sh; chmod +x installr.sh; ./installr.sh   Sample installation output: *********************************************************************** * WHMSonic Setup v2.1.11 * *********************************************************************** WHMSonic installer is now installing the latest version. This may take a …

Cloud Linux, CPanel / WHM

Uninstall Cloudlinux from cpanel

You can always uninstall CloudLinux. In this case, we will ‘convert’ the system back to CentOS. Even if the original system was RHEL — we will still convert to ‘CentOS’ state. To uninstall CloudLinux follow below steps: wget -O cldeploy http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy sh cldeploy -c Please, note that some of the packages from CloudLinux repo will still be …

Apache, CPanel / WHM, Installation

How to: Install mod_pagespeed in cpanel

How to: Install mod_pagespeed in cpanel Login to the server via SSH Go to below folder cd /usr/local/src create directory mkdir mod_pagespeed Download pagespeed rpm wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm Extract the rpm rpm2cpio mod-pagespeed-beta_current_i386.rpm | cpio -idmv Copy the modules to apache modules folder cp /usr/local/src/mod-pagespeed/usr/lib/httpd/modules/mod_pagespeed.so /usr/local/apache/modules/ cp /usr/local/src/mod-pagespeed/etc/httpd/conf.d/pagespeed.conf /usr/local/apache/conf/ Provide execute permission chmod 755 /usr/local/apache/modules/mod_pagespeed.so Create …