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:
THE INSTALLATION AND CONFIGURATION OF MOD_HOSTINGLIMITS IF IT IS NOT LOADED WITH THE DEFAUT INSTALLATION:
And then the below line is added in the httpd.conf to load the mod_hostinglimits module in Apache
INORDER TO UNINSTALL CLOUDLINUX THEN YOU HAVE TO DO THE FOLLOWING:
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:
TO UPDATE THE CENTOS-PROVIDED RPMs FOLLOW THE COMMAND BELOW:
TO REBUILD THE APACHE
THE NON-CLOUDLINUX KERNEL CAN BE REINSTALLED USING:
THE CLOUDLINUX KERNEL CAN BE REMOVED BY:
ANY CLOUDLINUX-PROVIDED RPMs CAN BE REINSTALLED PROVIDED BY CENTOS BY:
TO DOWNGRADE ANY CLOUDLINUX PROVIDED RPMs TO CENTOS VERSION FOLLOW:
THE REMAINING CLOUDLINUX SPECIFIC RPMs CAN BE REMOVED BY:
THE DOWNGRADED CENTOS PROVIDED RPMs CAN BE UPDATED BY:
THE NEW NON-CLOUDLINUX KERNEL CAN REBOOT THE SERVER BY USING:
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
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
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
Code:
LoadModule hostinglimits_module modules/mod_hostinglimits.so
Code:
$ wget –O cldeploy
Code:
http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
Code:
$ sh cldeploy –c
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
Code:
yum update –y
Code:
/usr/local/cpanel/scripts/easyapache –build
Or
/scripts/easyapache –build
Code:
yum –disableexcludes=all install kernel
Code:
rpm -qa |awk ‘/^kernel.*lve/ {print $1|”xargs yum -y erase”}’
Code:
rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum reinstall -y”}’
Code:
rpm –qa –qf”[%{VENDOR} %{NAME}n]” | awk‘/CloudLinux/ {print $2|”xargs yum downgrade –y”}’
Code:
rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum erase -y”}’
Code:
yum upgrade –y
Code:
reboot