The kernel level technology is CloudLinux which is one of the great operating system. This technology is designed in such a way that is used for sharing the host environment. The use of this website is that the single site can be prevented. This site uses the resources and it makes the whole server unresponsive or crashes it. The cloudlinux can be easily uninstalled. For this we have to convert the system to CentOS even if the software installed is RHEL. Inorder to install CentOS the following has to be done

1. The package related to LVE has to be removed.

2. Then cloudlinux repositories and the yum plugin has to be dispatched.

3. Finally the CentOS have to be installed.

After the following the above steps the script shown will provide instructions. Using the instruction we can finish the conversion process. So this will uninstall the CloudLinux kernel and install the CentOS kernel.

REQUIREMENTS FOR INSTALLATION OF CLOUDLINUX:

The installation of CloudLinux is easy and there are some requirements that has to required by the cPanel server they are:
  • Install LVE
  • Apache 2.2.x or 1.3.x, complied with easyapache
  • It has to be enabled with mod_suexec
  • MPM Prefork, Worker or Event must be configured with Apache
  • Install wget and yum
THE BELOW STEPS HAS TO BE FOLLOWED INORDER TO COMPLETE THE INSTALLATION:

Code:
wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cpanel2cl
Code:
sh cpanel2cl -k <activation_key>
Code:
reboot
Code:
/scripts/easyapache –build
Code:
yum install cpanel-lve –y
Code:
yum install cpanel-lvemanager –y
Code:
yum install lve-cpanel-plugin –y
THE INSTALLATION AND CONFIGURATION OF MOD_HOSTINGLIMITS IF IT IS NOT LOADED WITH THE DEFAUT INSTALLATION:

Code:
cd /usr/local/src
Code:
wget http://repo.cloudlinux.com/cloudlinux/sources/mod_hostinglimits.tar.gz
Code:
tar -zxvf mod_hostinglimits.tar.gz
Code:
cd mod_hostinglimits
Code:
cmake CMakeLists.txt
Code:
make install
And then the below line is added in the httpd.conf to load the mod_hostinglimits module in Apache

Code:
LoadModule hostinglimits_module modules/mod_hostinglimits.so
INORDER TO UNINSTALL CLOUDLINUX THEN YOU HAVE TO DO THE FOLLOWING:

Code:
$ wget –O cldeploy
Code:
http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
Code:
$ sh cldeploy –c
After using the above link still the CloudLinux repo will be present. This is same as the CentOS packages, so there is no need to uninstall the software. The CloudLinux repco will be updated automatically using the CentOS repositories. By using the following steps further:

BY USING THE BELOW COMMAND YOU CAN CHECK WHETHER THE CLOUDLINUX SOFTWARE IS INSTALLED OR NOT:

Code:
/usr/local/cpanel/bin/cloudlinux_system_install –c
TO UPDATE THE CENTOS-PROVIDED RPMs FOLLOW THE COMMAND BELOW:

Code:
yum update –y
TO REBUILD THE APACHE

Code:
/usr/local/cpanel/scripts/easyapache –build

Or

/scripts/easyapache –build
THE NON-CLOUDLINUX KERNEL CAN BE REINSTALLED USING:

Code:
yum –disableexcludes=all install kernel
THE CLOUDLINUX KERNEL CAN BE REMOVED BY:

Code:
rpm -qa |awk ‘/^kernel.*lve/ {print $1|”xargs yum -y erase”}’
ANY CLOUDLINUX-PROVIDED RPMs CAN BE REINSTALLED PROVIDED BY CENTOS BY:

Code:
rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum reinstall -y”}’
TO DOWNGRADE ANY CLOUDLINUX PROVIDED RPMs TO CENTOS VERSION FOLLOW:

Code:
rpm –qa –qf”[%{VENDOR} %{NAME}n]” | awk‘/CloudLinux/ {print $2|”xargs yum downgrade –y”}’
THE REMAINING CLOUDLINUX SPECIFIC RPMs CAN BE REMOVED BY:

Code:
rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum erase -y”}’
THE DOWNGRADED CENTOS PROVIDED RPMs CAN BE UPDATED BY:

Code:
yum upgrade –y
THE NEW NON-CLOUDLINUX KERNEL CAN REBOOT THE SERVER BY USING:

Code:
reboot
Author
Bhawani Singh
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Bhawani Singh

Top