Unable to install yum-rhn-plugin, please contact CloudLinux (Fix)
Few 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.
Setting up WHMCS with your WHM reseller account
Here is the quick tutorial on setting up your WHMCS with WHM reseller account to automate the process of WHMCS ordering, by integrating your account will auto get setup once you get any new order. You will be able to perform various actions such as account termination, account suspension/unsuspension and account creation. You can setup if accounts are created automatically once you receive the payment through any gateway.
Follow these instructions:
Login to your WHMCS admin panel with admin access, and then from navigation menu navigate through Setup > Products/Services > Servers
New page will appear displaying all the servers you have created if any. 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.
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:
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
Create new account from SSH for cPanel/WHM
If your cPanel/WHM has expired and you are not able to create new account from WHM panel although you have root access to the server, you can still create and use new accounts via SSH. Lets do it now.
Follow below steps to add/create new cPanel account from SSH:
Login to SSH via Putty or any SSH client with root access
execute following command:
/scripts/createacct domain user pass quota cpmod ip[y/n] cgi[y/n] frontpage[y/n] maxftp maxsql maxpop maxlst maxsub bwlimit hasshell[y/n] owner plan maxpark maxaddon featurelist contactemail
WHMCS integration of domain check for PKNIC domains
Pakistan’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.
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:
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)
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.