Friday 31 October 2014

R1soft backup server windows agent configuring with the manager.


http://wiki.r1soft.com/display/CDP3/Installing+Enterprise+Edition+on+Windows
http://wiki.r1soft.com/display/CDP3/Configuring+Enterprise+Edition+on+Windows
http://wiki.r1soft.com/display/CDP3/Adding+the+Server+Key+to+Windows+Agent

Thursday 30 October 2014

R1soft CDP Agent version Upgradation

R1soft CDP Agent Upgradation
==============================

For Linux
============

r1soft-setup -v
   
Repostry if needs,
==
name=R1Soft Repository Server
baseurl=http://repo.r1soft.com/yum/stable/$basearch/
enabled=1
gpgcheck=0
==

1) Stop CDP Agent

/etc/init.d/cdp-agent stop

2) yum upgrade r1soft-cdp-enterprise-agent
(Maybe this will not work)

Then do

yum install r1soft-cdp-enterprise-agent

3)/etc/init.d/cdp-agent restart
==============

Windows
========
 You may find the upgrade to higher version R1Soft-EnterpriseAgent from the below link
=========
http://repo.r1soft.com/trials/
=========
Then just do like a normal installation (while testing the pass status > compulsory check all the items are getting pass)

========================
For more info please visit
http://wiki.r1soft.com/display/CDP3/Upgrading+Agent+on+CentOS,+RHE,+and+Fedora
http://wiki.r1soft.com/display/ServerBackup/Server+Backup+5.8.1+Release+Notes
http://wiki.r1soft.com/display/ServerBackup/Upgrade+Backup+Agent+on+CentOS%2C+RHE+and+F

Sunday 26 October 2014

Using script cPanel reseller account to cPanel root

Old account
========
Becoz of Reseller we have to take backup of each account individually.

After that

-----------

New server

==========
vi /home/accounts.txt

list the information as below

http://IP/~accountname/public_html/backupname
http://IP/~accountname/public_html/backupname
http://IP/~accountname/public_html/backupname

vi sree.sh

for i in `cat /home/accounts.txt`;
do wget $i;
done

=============


>> ll
 You could see the backup files in /home






vi  /home/acc.txt

put the name of the backup files

Then

vi sree.sh

for i in `cat /home/acc.txt`;
do /scripts/restorepkg $i;
done

====================


Saturday 25 October 2014

Via script Migration of cPanel accounts

Old server

Take Backup
========
vi script.sh

for i in `cat /home/users.txt`;
do /scripts/pkgacct $i;
done


To move backup
==========

scp cpmove-*.tar.gz root@IP(New server):/home/

scp -P22 cpmove-*.tar.gz root@IP(New server):/home/ 

passwd:

rm -rf cpmove-*


In new Server:
============
restore Backup

for i in `cat /home/user.txt`;
do /scripts/restorepkg $i;
done



For force restore
=============
for i in `cat /home/user.txt`;
do /scripts/restorepkg  --force $i;
done



rm -rf cpmove-*


=================
Make & Move multiple cPanel user backups

 
First you have to create a file containing the usernames of the accounts in the old server(users.txt).
================================
Take Backup(script.sh)
 
for i in `cat /home/users.txt`;
do /scripts/pkgacct $i;
done
================================
To move backup
 
scp cpmove-*.tar.gz root@IP(New server):/home/
 
passwd:

Solusvm master and slave installation for KVM/XEN/OPenvZ

Solus Vm master means>> Normal solusVm that we are used as the up to node level handling
==============================
Note:

>> CANNOT Install a SolusVM Master on a Xen/KVM Slave Directly >> install your SolusVm Master on a Xen VPS which is hosted on this slave.

This Script should NEVER be used to upgrade SolusVM to the latest version, doing so will destroy your installation of SolusVM

DO NOT use this installer on servers that contain any other control panel (cPanel, Directadmin etc..) Always use a clean install of CentOS/RHEL/Scientific!
===============================

Supported Host Operating Systems

    CentOS 5/6
    RHEL 5/6
    Scientific Linux 5/6

Reload the vps and make the partition as below
KVM                           Xen                 OpenVZ
=====                       =======          ===========
/ 50 GB                      / 50 GB           /  10GB
swap 4GB                     Swap 4GB            swap 4GB
Remaining As Logical Volume   ""                  /vz remaining space

SolusVm master installation
========
SSH First system
============
wget http://soluslabs.com/installers/solusvm/install
chmod 755 install
./install
========
For Openvz Installation alternate methord
    cd /etc/yum.repos.d
    wget http://download.openvz.org/openvz.repo
rpm --import  http://download.openvz.org/RPM-GPG-Key-OpenVZ
yum -y install ovzkernel-xen
yum -y install vzctl vzctl-lib vzquota

Remembering to disable SELinux as required.
=====
For better understanding through pictorial way,please follow the link
==
http://docs.solusvm.com/v2/Content/Installation/Installing-Master.htm
==
1> enter
2> 2
3>1
4>1
5> select your Option
====
Once the installer is complete you will be presented with the slave keys and any further instructions for your install type.

Note:
If you need to install a master that 'won't' host any virtual servers, select option 1 (recommended)

If you need to install a master that 'will' host virtual servers, select option 2
====


Once installed go to http://myipaddress:5353/admincp/ and login using (uname) vpsadmin (pword) vpsadmin
==============
==================
=======================
Installing a Slave
====
 Same steps as In master Installation
Install SolusVM Slave
    wget http://soluslabs.com/installers/solusvm/install
   chmod 755 install
   ./install

   Once the installation Complete >> Copy the key and pass
 ======================

 Add this slave to your SolusVM master using the following details:

 ID Key .......... : 6IK10OCRJEZWXYWME909GQW5RR6
 ID Password ..... : EEFbx0bH6QfJhLUs5VyBAWXwXXeIAGuT1kV0k2koEWbEbhsQrNb

 Edit /boot/grub/menu.lst and set the Xen kernel to boot (usually default=0)

 IMPORTANT!! Run: php -f /usr/local/solusvm/includes/xenkernel.php after you have rebooted into the Xen kernel!

 Please set SELINUX=disabled in /etc/selinux/config before rebooting.


=======
EX:

1. Partition layout:
    /dev/sda1    --    /boot            (1024MB)
    /dev/sda2    --    LVM PV
                -VolGroup00
                --LogVol01    /    (24544MB)
                        swap    (8192MB)
    /dev/sda3    --    LVM PV
                -VolGroup01    unmounted, rest of space
=======
2)

 Install Xen do the following first
    yum -y install xen-kernel xen xen-devel
 Install KVM dowsn't need to alter the kernel 
 Install OpenVZ No need of slave(or you could create a slave openvz )
   Then Do the following
    cd /etc/yum.repos.d
    wget http://download.openvz.org/openvz.repo
rpm --import  http://download.openvz.org/RPM-GPG-Key-OpenVZ
yum -y install ovzkernel-xen
yum -y install vzctl vzctl-lib vzquota
=========

//
vi /boot/grub/menu.lst
    Set default boot option to 0
    Insert “dom0_mem=512M” without quotes after the kernel.

 Example:
  
default=0
timeout=3
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.17.1.el5.028stab070.7xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-194.17.1.el5.028stab070.7 dom0_mem=512M
        module /vmlinuz-2.6.18-194.17.1.el5.028stab070.7xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-194.17.1.el5.028stab070.7xen.img

//

Formore info please go throgh the following link

 http://wiki.solusvm.com/index.php/Lighttpd_hotfix

===
========
========
============
========




LSI MegaRAID Email Alerts

To start, the server needs to have either postfix or sendmail installed


Check
====

ls /etc/init.d | grep postfix   (defaults)

ls /etc/init.d | grep sendmail
===========
if not installed

yum install postfix -y 
yum install sendmail -y
======
chkconfig postfix on 
chkconfig sendmail on

======================

Set cronjob for mail aleart

=========== 

cd /etc/cron.hourly
vi MegaRAIDcron

#!/bin/bash
cd /opt/MegaRAID/MegaCli
./MegaCli64 -AdpAllInfo -aALL | grep "Degraded" > degraded.txt
./MegaCli64 -AdpAllInfo -aALL | grep "Failed" >> degraded.txt
cat degraded.txt | grep "1" > /dev/null
if [[ $? -eq 0 ]];
then
cat degraded.txt | mailx -s 'Degraded RAID on '$HOSTNAME <testgmla@gmail.com> 

fi       

==============
To test cron, we need to make one small change to the file. Change the following:

From
cat degraded.txt | grep "1" > /dev/null

To
cat degraded.txt | grep "0" > /dev/null

Save the changes and run the cron manually:

/etc/cron.hourly/MegaRAIDcron

If you have installed everything correctly, you should receive an email which shows the following:

Degraded : 0
Security Key Failed : No
Failed Disks : 0
Deny Force Failed : No





Sree

MegaCli installation

Before start installing the MegaRAIDCli please ensure that you are using a MegaRAID Controller(hardware arid with newly reloaded systems may be not shows the same due to command not found.)
===========


lspci -nn | grep RAID
02:00.0 RAID bus controller [0104]: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] [1000:0079] (rev 04)

==

Download the software
=======
http://www.lsi.com/Search/Pages/downloads.aspx?k=MegaCLI%20-%20Linux


Search >> megacli
          you can see the file under in the management software
          Click download
      Accept
Upload via Filzila
Note: Direct wget will note work fine

==============
Extract the file

Change to temp directory
        cd /tmp
Copy the zip to your current location
        cp /home/(username)/(path_to_zip)/ .
Unzip the software
        unzip (version)_MegaCLI.zip
        unzip CLI_Lin_(version).zip
        unzip MegaCliLin.zip
Installing software using RPM
Run the following commands to install the libraries and the MegaCli Binaries
rpm -i Lib_Utils-(version).noarch.rpm
rpm -i MegaCli-(version).noarch.rpm
==================


After installing the binaries will be located in the following location:

/opt/MegaRAID/MegaCli/MegaCli64


===================
Display Adapter Status

The following command will give you:

    Global information/settings on the physical adapter
    Adapter capabilities (RAID levels, Drive Types)
    Image/Firmware Revisions
    Serial Number
    Product Name

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll


/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aAll

Viewing Physical Disk Info

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll


Thanks for Viewing ....

Sree

Sunday 19 October 2014

POODLE vulnerability (cPanel servers)

We are getting mails from client asking to check the POODLE vulnerability on their servers. To check this, run;


openssl s_client -connect ServerIP:443 -ssl3

If you get


CONNECTED(00000003)
140051818760008:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1257:SSL alert number 40
140051818760008:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:596:
========================

It's not vulnerable to POODLE. If the result showing any other result then perform below steps;
+++++++++++++
++++++++++++++
+++++++++++++++
1. Go to

WHM » Home » Service Configuration » Apache Configuration » Global Configuration

Add

SSL Cipher Suite: ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP:!kEDH:!aNULL

After that;

2. Go to

Home » Service Configuration » Apache Configuration » Include Editor » Pre Main Include

Select all versions, then add below lines (for CentOS/RHEL 6.x:)

Code: [Select]
SSLHonorCipherOrder On
SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2

Select all versions, then add below lines (CentOS/RHEL 5.x:)

Code: [Select]
SSLHonorCipherOrder On
SSLProtocol -All +TLSv1

Then update.

It will resolve the issue :)

Saturday 18 October 2014

FrontAccounting Installation

FrontAccounting Installation
============================

Download the archive file to the root directory

(wget http://softlayer-sng.dl.sourceforge.net/project/frontaccounting/FrontAccounting-2.3/2.3.22/frontaccounting-2.3.22.tar.gz )

 Steps
======
step 1:

cd domain.com/front/

wget http://softlayer-sng.dl.sourceforge.net/project/frontaccounting/FrontAccounting-2.3/2.3.22/frontaccounting-2.3.22.zip

Step 2:

untar the archive 

tar -xvf frontaccounting-2.3.22.zip

Check the file permission and owner ship
======
correct the permissions and ownership to account user.

Database creation

create a mysql database and user account.
  database name , database user and database password those will required while running the installation wizard.

Run the install wizard. Enetr domain.com/front (or whatever directory you entered). This will run the install wizard.

===
domain.com/front
===

URL:

========
http://frontaccounting.com/wb3/pages/download.php
http://frontaccounting.com/wb3/pages/download/installation-guide.php
petermoulding.com/frontaccounting
=========

OR

Also frontaccounting can be easily installed using softaculous auto installer.
=====
http://kb.site5.com/control/cpanel/cp-software/cpanel-how-to-install-frontaccounting/
http://demo.softaculous.com/enduser/index.php?act=software&soft=201
=====