Posts Tagged ‘cloudlinux’

Installation of Plesk in CloudLinux

Monday, July 5th, 2010

Glad to submit the result of our recent workshop with CloudLinux. The key is to disable SELinux.

1.Login to the CloudLinux as root.

# uname -i

i586

2.Check SELinux status, we have it disabled but still… execute “getenforce” it should say “Disabled” or “Not enforcing”. If it’s enforcing, disable it by executing: “setenforce 0″.

# getenforce

Disabled

3. Update yum

# yum update –exclude=xorg* –exclude=kernel* –exclude=cloudlinux-release*

4.Change your working directory to where you want to download the Auto-installer utility:

# mkdir /root/plesk

# cd /root/plesk

5.Once done, download the Auto-installer utility that suits your operating system and save it on your server’s hard drive :

# wget http://download1.parallels.com/Plesk/PPP9/CloudLinux5/parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386

6 Set the execution permission for Auto-installer:

# chmod +x parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386

7.Run the Auto-installer:

# ./parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386

8.Read installation notes displayed on the screen and type ‘n’ to proceed to the next screen. Press ENTER.

Select the product versions that you want to install: type the number corresponding to the product version you need and press ENTER, then type ‘n’ and press ENTER to continueThe packages will be downloaded and installed. When the installation is finished, Parallels Plesk Panel will start automatically.

9.Now to complete the initial configuration, log in to the Parallels Plesk Panel running on your host at https://machine.domain.name:8443/ or https://IP-address:8443/. Use the username ‘admin‘ and password ‘setup‘ (both are case sensitive). For security reasons, change the password upon initial login.

Next week, we will have something interesting to show in the Linux HA segment.

LVE – Lightweight Virtual Environment

Monday, June 28th, 2010


LVE is a kernel level technology developed by the CloudLinux team. The technology has common roots with container based virtualization. Yet, it is lightweight, and transparent. The goal of LVE is to make sure that no single web site can bring down your web server.

Today, a single site can consume all CPU resources, IO resources or apache processes — and bring the server to the halt. LVE prevents that.

It is done via collaboration of apache modules and kernel. mod_hostinglimits is the apache module that:

1 . Detects VirtualHost from which the request came.
2 . Detects if it was meant for cgi or PHP script.
3 . Switches apache process used to serve that request into LVE for the user determined via
SuexecUserGroup for that virtual host.
4 . Lets apache to serve the request.
5 . Removes apache process from user’s LVE.

The kernel makes sure that all LVEs get fair share of the server’s resources. This means, for example, that 20 apache processes serving a heavy site will use the same amount of CPU as one apache process serving a smaller site.

Each LVE limits amount of entry processes (Apache processes entering into LVE) to prevent single site exhausting all apache processes. If the limit is reached — mod_hostinglimits will not be able to place apache process into LVE, and will return error code 503 (server busy).

By using isolation technology to create lightweight virtual environment (LVE), CloudLinux can:

1. Limit the amount of resources one site can use so no single account can slow or take down a whole server
2. Provide better security by running all processes under the correct user and in their own container
3. Protect the server from hackers and poorly written scripts that drain resources for other tenants

Installation process of LVE

In order to install LVE services , we need to setup CloudLinux. We can either install CloudLinux by downloading it or migrating it from CentOS 5.

You can download latest ISO for CloudLinux CD and DVDs from:

x86_64 version: http://repo.cloudlinux.com/cloudlinux/5.5/iso/x86_64
i386 version: http://repo.cloudlinux.com/cloudlinux/5.5/iso/i386

Version 5.4 is available here:

x86_64 version: http://repo.cloudlinux.com/cloudlinux/5.4/iso/x86_64
i386 version: http://repo.cloudlinux.com/cloudlinux/5.4/iso/i386

Switch From CentOS to CloudLinux today

It is easy to switch from CentOS 5 to CloudLinux. The process takes a few minutes and replaces just a
handful of RPMs.

Get <activation_key> either by getting trial subscription or by purchasing subscription,

Download script: centos2cl
Execute sh centos2cl -k <activation_key>

Reboot

# wget http://repo.cloudlinux.com/cloudlinux/sources/cln/centos2cl
# sh centos2cl -k <activation_key>
# reboot

Enabling Apache LVE support

If you have no control panel, or you run one of the following control panels: Webmin, Plesk, Interworx, do

# yum install mod_hostinglimits

If you run apache with worker MPM, do:

# yum install mod_sucgid

If you have cPanel, use install-lve script :

# wget http://repo.cloudlinux.com/cloudlinux/sources/install-lve

# sh install-lve -a