How to install plesk panel on linux?

1. mkdir /root/plesk

2. cd /root/plesk

3. wget http://download1.parallels.com/Plesk/PP11/11.0/CentOS5/parallels_installer_v3.12.0_build120601.16_os_CentOS_5_x86_64

this is 64bit CentOS version.

To give it execution permissions

4. chmod +x

parallels_installer_v3.12.0_build120601.16_os_CentOS_5_x86_64

5. Run the auto installer

./parallels_installer_v3.12.0_build120601.16_os_CentOS_5_x86_64

6. After installation, open Internet Browser and go to below URL:

https://your-server-ip-address:8443/

 

How to resolve failed to open session lockfile issue of C Panel?

If you are getting this issue wih CPanel:

failed to open session lockfile: FILE=/var/cpanel/sessions/raw/:Up5nKwLkFgQF_Ke_yEsgb_w9gMl2FzDSPpHdrus6DAOcD30Xt1tEgWy41BwsSQC5.lock, No such file or directory at /usr/local/cpanel/Cpanel/Session.pm line 261.

df -i  : to check the usage of inode space.

if it showing 100% used then

cd /var/spool

rm -rf exim :  to delete the exim file

Issue will resolved

 

How to install KVM in linux?

Refer below link for kvm installation–

http://www.virtualizor.com/wiki/Install_KVM

For kvm installation the most important thing is to setup correct partitioning scheme which is describe below–

20150106_160445

Always select the custom layout for creating partition

 

20150106_160513

Delete all existing data on the hard disk.

20150106_160532

After deletion the windows will look like this.

20150106_160547

Select the standard partition

20150106_160649

Select the / partition of 80-100gb as mention in the kvm installation link

20150106_160725

swap partition of 4gb

20150106_160745

And most important is to create partition for lvm, click on lvm physical volume

20150106_160817

Click on “Fill upto maximum allowable size” which will use for vps space

20150106_160836

After this your partition will look like this20150106_160848

Click write changes to disk to install Centos20150106_160923

Click on next

20150106_160945

Select minimal Desktop or Desktop(You can also select minimal in case of low disk space)

20150106_161257

Done

Note:

After installation create volume group on lvm partition(physical volume )and give it any name.

For pvcreate use the following command

pvcreate partition name e.g pvcreate /dev/sdb2

Physical volume "/dev/sdb2" successfully created

to check physical volume name rum command “pvdisplay”

Once you create the physical volume, you can create the volume group (VG) from these physical volumes (PV).

vgcreate  vg_name  pv_name     e.g. vgcreate  vg_group  /dev/sdb2

  Volume  group "vg_group" successfully created

to check vg created name  run command “vgdisplay”

./install.sh [email protected] kernel=kvm lvg=VOLUME_GROUP_NAME

you should give lvg = vg name created by you

Also make sure that visualization should be enabled in BIOS

Enjoy

How to configure domain in hmail server

hmail1

Click add domain option

hmail2

Enter your domain name

hmail3

goto account section

 hmail4

add your email usernmae for your domain as [email protected]

 

hmail5

goto SMTP setting click on delivery of email and in the local hostname box write  your mail server name as mail.domainname.com–and save.

Note: Make sure that there is no other application using smtp port 25 else you will not able to send email.