Archive

Archive for the ‘VPS FAQ’ Category

What is Linux VPS?

November 21st, 2008 No comments

First, Linux (sometimes referred to as GNU/Linux or a Linux–based GNU system) is a UNIX–like operating system. Linux is distributed under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation (FSF). Your private server account utilizes Red Hat Enterprise Linux (RHEL), a widely implemented corporate Linux standard. RHEL is based on open standards and is derived from the community–supported open source project called Fedora. The project is sponsored by Red Hat.

Then, a Virtual Private Server (VPS) is a hosting environment that gives you your own Linux virtual machine. Each private server provides a protected area that operates as an independent server. It enables you (and multiple customers) to share the expense of hardware and network connections and to eliminate the difficulty of maintaining them. Keep in mind that although multiple VPS customers share hardware, they do not share software. It has its own, complete directory structure, and set of dedicated application software. You can restart it without affecting any other private server accounts which share the same hardware.

Categories: VPS FAQ Tags:

How To Install CPANEL on your VPS

November 20th, 2008 No comments
Lets start giving some use to all our VPS servers, lets install a trial or a final license of Cpanel.

If you want a cpanel license you can get 1 for $ 12 / month or 70/month for a 10 pack. You should contact Aaron Conklin at websales_aaronc@ev1.net .

In case you want a trial licence for cpanel you should go to : http://www.cpanel.net/store/

Ok. Few Steps to setup your VPS-CPANEL:

1 - Login to your VZMC and get inside your server
2 - Create a new VPS with the Sample Ve Config call vps.cpanel
3 - Select the ips you want to use in that VPS and the dns servers.
4 - Select RedHat Enterprise Template (not minimal)
5 - Dont select any addon.You dont need it for cpanel.
6 - Select the Space / Memory / CPU . All the normal stuff of your normal VPS. Put Start on boot and the rest of the normal stuff. Rememeber to use unlimited VPs.
7 - Go to your Ev1 Member section, open a ticket with your IP / and root password and request ev1 to get your VPS register in up2date. CHECK IT IF IT IS WELL CONFIGURE!! JUST IN CASE.
8 - Go in ssh and do the following steps:
mkdir /home/cpins
cd /home/cpins
wget http://layer1.cpanel.net/latest
sh latest

This should install cpanel without asking you any questions.

If you have any problems you should check: http://www.cpanel.net/install.html

9 - Login to : https://xxx.xxx.xxx.xxx:2087 and setup your server.
If you never setup a cpanel server, you can find some usefull information here: http://www.cpanel.net/docs.htm or search ev1 forum or ask me. I will be happy to help.

Well. Hopefully for some of you was usefull and will give you something else to try/offer in your VPS server.

Btw, it needs atleast 128 MB for cpanel to work.

I

——————–

Categories: VPS FAQ Tags:

How To Install OpenVZ VPS Master Server

November 19th, 2008 No comments

What is OpenVZ ?

OpenVZ is an open source container-based virtualization solution built on Linux. OpenVZ creates isolated, secure containers (otherwise known as VEs or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict. Each container performs and executes exactly like a stand-alone server; containers can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries and configuration files.

Preparing Anything
1. Server With Centos 5 ( You can also choose other distro linux fedora, RHEL, etc ) in this tutorial we are using Centos 5 with 4 GB memory and 40 GB harddrive
2. Configure YUM to have a OpenVZ repository
3. Install OpenVZ Kernel
4. Configure Boot loader
5. Configure Sysctl
6. Disabled SELinux
7. Configure Conntracks
8. Installing OpenVZ utilities
9. Starting OpenVZ
10. Installing OS Template Cache & Template Utilities
11. Alternative Use Precreated Template Cache
12. Create a Container/VPS Machine

We start with Configure YUM to have a OpenVZ repository
Login as root into your server

$cd /etc/yum.repos.d
$wget http://download.openvz.org/openvz.repo
$rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ

Download & Install OpenVZ Kernel

$cd /root
$wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab053.6/ovzkernel-2.6.18-53.1.6.el5.028stab053.6.i686.rpm
$wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab053.6/ovzkernel-devel-2.6.18-53.1.6.el5.028stab053.6.i686.rpm
$rpm -ivh ovzkernel*

You can download other kernel from this URL http://openvz.org/download/kernel/

Note : if your server have memory > 4GB, you need to using PAE kernel

Configure Boot Loader

$cd /etc/
$vi grub.conf

### change the title so your new kernel will not mixed up with non-OpenVZ kernel
Example :

title Fedora Core (2.6.8-022stab029.1)
root (hd0,0)
kernel /vmlinuz-2.6.8-022stab029.1 ro root=/dev/sda5 quiet rhgb vga=0×31B
initrd /initrd-2.6.8-022stab029.1.img

### Change it To

title OpenVZ (2.6.8-022stab029.1)
root (hd0,0)
kernel /vmlinuz-2.6.8-022stab029.1 ro root=/dev/sda5
initrd /initrd-2.6.8-022stab029.1.img

## save and exit
$

Configure Sysctl

$vi /etc/sysctl.conf

### Change your sysctl look like below ###

# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1
# Enables the magic-sysrq key
kernel.sysrq = 1
# TCP Explict Congestion Notification
#net.ipv4.tcp_ecn = 0
# we do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
$

Disabled SELinux

$vi /etc/sysconfig/selinux

### Make sure you have disabled SELinux like below

SELINUX=disabled
$

Configure Conntracks

$vi /etc/modprobe.conf

## add the following line into modprobe.conf

options ip_conntrack ip_conntrack_enable_ve0=1

NOTE : In kernels later than 2.6.8, connection tracking is enabled by default.

Rebooting into your new OpenVZ Kernel
$reboot

Installing OpenVZ Utilities

OpenVZ need 2 utilities below :

vzctl
A utility to control OpenVZ containers (create, destroy, start, stop, set parameters etc.)
vzquota
A utility to manage quotas for containers. Mostly used indirectly (by vzctl).

Using Yum to install vzctl and vzquota
$yum install vzctl vzquota

Starting OpenVZ

$/etc/init.d/vz start

or

$service vz start

Next Step is Installing OS Template cache and Template Utilities

Installing Template Utilites
$yum install vzpkg vzyum vzrpm43-python vzrpm44-python vzctl-lib

Installing OS Template Metadata
$yum search vztmpl

Note : you will see few OS Template Metadata such as vztmpl-Fedora-core6-default, etc.
$yum install vztmpl-fedora-core6-default

Alternative Use Precreated Template Cache

$cd /vz/template/cache
$wget http://download.openvz.org/template/precreated/centos-4-i386-default.tar.gz

Note : You can download other Precreated Template from this URL http://download.openvz.org/template/precreated/

After we have a precreated Template Cache, Next we can create a container or VPS Machine.

Categories: VPS FAQ Tags: