Unable to install yum-rhn-plugin, please contact CloudLinux (Fix)

cloudlinuxFew days back i got error Unable to install yum-rhn-plugin, please contact CloudLinux support at https://helpdesk.cloudlinux.com  on one of our shared web hosting server while installing CloudLinux, I googled it but not able to found any proper solution, i have re-installed cPanel/WHM from scratch but no luck. This issue mostly appears on OVH Servers as they use their own cPanel/WHM and CentOS kernels which got few bugs in the repositories. I contacted cloudlinux support they provided me single command that fixed this issue immediately.

You can also run this command in SSH to fix out the repositories issue:

# rpm -e --nodeps libxml2-devel

Running up above command will fix this issue for sure as tested.

Read More

Enabling second level quotas on openVZ/virtuozzo/VPS

Many VPS hosting providers have quota issue with their VPS provided to customers, they always get complaints regarding the quotas especially on cPanel/WHM based servers. As cPanel/WHM based servers require File system quotas must be enabled to calculate Disk space usage for the hosted accounts and this very important to get this issue fixed in order to limit the disk space usage for any hosted account.installing cpanel/WHM

Following below instructions enables you to get this issue sorted if you have OpenVZ/Virtuozzo VPS you should follow these instructions to enable 2nd level-quotas support to get disk space usage issue sorted.

Lets start fixing this:

Login to your main node’s SSH with root access where you have hosted VPS’.

Just find out the exact ID of your VPS for which you want to enable the second level-quotas by executing below stated command:

# vzlist

It will list all the online Virtual Private Servers, remember the one you want to enable second level quotas for.

Now execute following below command on the required VPS ID.

# vzctl set VPS_ID --quotaugidlimit NUMBER --save

Read More

WHMCS integration of domain check for PKNIC domains

PKNICPakistan’s largest domains (cTLDs) provider PKNIC has no WHMCS modules or domain checking mechanism for 3rd party tools.

You can add these domains checker functionality to your WHMCS by doing below simple steps:

  • Login to your FTP and edit file “WHMCS installation folder/includes/whoisservers.php” in any text editor or Dreamweaver
  • Now paste following below code at the end of the file and save that file to your server.

Read More

Enable GeoIP on LiteSpeed web server

This tutorial explains how to install/configure/enable GeoIP location feature on litespeed web server.
Note: You can only use this feature with enterprise license of litespeed web server.

Follow these steps to get it enabled:

First of all download GeoIP location database from official web site (maxmind):

Login to your server via SSH with root access, and execute following commands:
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
cp GeoLiteCity.dat /usr/local/share/GeoIP/

Now you have downloaded GeoIP location database, next is to enable it from LiteSpeed control panel.

Follow these steps:

liteSpeed admin console->Server->General
->Enable IP GeoLocation: Yes

liteSpeed admin console->Server->General
->IP to GeoLocation DB: Add
DB File Path: /usr/local/share/GeoIP/GeoIPCity.dat
DB Cache Type: MemoryCache

Last step is to add a line in .htaccess file of your hosting account directory (public_html in cPanel)

GeoIPEnable On

Well you have configured/enabled GeoIP location system.

Now just make a test on it:
Create a php file on your hosting account, and paste below code in it:

<?
$countryName = $_SERVER["GEOIP_COUNTRY_NAME"];
$countryCode = $_SERVER["GEOIP_COUNTRY_CODE"];

echo $countryName.'<br/ >'.$countryCode;
?>

Now run this file from browser it should return your country name and country code.