How to clone a VPS in Virtuozzo

0

Cloning refers to a process of creating an exact copy (or multiple copies) of a Virtuozzo Container on the same Hardware Node. The new Container will have its own private area and root directories but the rest of the configuration parameters will be exactly the same. This means that even the parameters that should be unique for each individual Container (IP addresses, hostname, name) will be copied unchanged. You don’t have an option to specify new values during the cloning operation. Instead, you will have to clone the Container first and then update the configuration of the new Container(s) in a separate procedure.

In Virtuozzo-based systems, you can use the vzmlocal utility to copy a Container within the given Hardware Node.

# vzmlocal -C 4466:4465
Moving/copying CT#4466 -> CT#4465, [], [] …
Check disk space
Tracker started
Syncing private area ‘/vz/private/4466′->’/vz/private/4465’
done
OfflineManagement CT#4466 …
done
Stopping CT#4466 …

Message from syslogd@vzhost0** at Mar 22 04:17:31 …
ack finished successfully
done
Syncing tracked files from ‘/vz/private/4466/fs’ to ‘/vz/private/4465/fs’
done
Copying/modifying config scripts of CT#4466 …
OfflineManagement CT#4466 …
done
Starting CT#4466 …
vzctl : Hostname of the Container set: server.renjith.com
done
ExecAction CT#4465 …
done
Successfully completed

Check the cloned VPS list

#vzlist -a

You can optionally specify custom private area and root directories for the new Container. To define custom private area and root paths for Container 4465, you can execute the following command:

# vzmlocal -C 4466:4465:/vz/private/dir_4465/:/vz/root/ct4465

Additional parameters can be used as per requirement :

-s, –fast-sid : allows to speed up cloning process
-d, –destroy-source : destroys the source container after making a clone
-l, –skiplock : allows to clone the locked containers

Reference :-
http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/lin/VzLinuxUG/16260.htm
http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/VZAgent_ProgGuide/21033.htm

How to create an Email Account on Webmin Control panel.

5

Follow the steps to create an e-mail account:

Process #1

STEP 1. From the left-side Menu, click “System” and then click on “Users and Groups”

STEP 2. Click on “Create a new user” link

STEP 3. Fill in the form with appropriate information. For this article’s purposes we will use the username: demouser. The following ones are recommended to be filled-in:

– Username (if you want to have an email address linux@yourdomain.com , set the username’s value to linux)
– User ID: leave it automatic
– Real Name: required only for you to identify each account from the list
– Home Directory: Click “Directory” and set it to: /home/ where is what you set in the Username field
– Shell: Leave it as it is
– Password: click the “Normal password” and type your desired password (it will be encrypted on save/exit)

You will see few more settings/fields on the same form. You may fill them in if you like. However, the above mentioned fields are those required to have a valid e-mail account created.

FINAL STEP 4. Now click the “Create” button and you are done!

Process #2

Adding user to mail :

Webmin: Servers > Sendmail Configuration -> Address Mapping (linux)
– Fill the following fields: Mail for Address user@domain.com
-Send to Address username – Click Create

Stop and Start Sendmail.
========================

How to change the cPanel port

0

How to change the cPanel port

You can change the cPanel port in /var/cpanel/cpanel.config file. Search this line
——————–
port=2082
——————–
After changing the port, then run these two commands for it to take effect:

# /usr/local/cpanel/whostmgr/bin/whostmgr2 –updatetweaksettings
# /etc/init.d/httpd restart
==============================>

Reference : http://linuxworldweb.blogspot.co.uk/2012/01/how-to-change-cpanel-port.html

How to add SPF records for all accounts on cPanel server

0

How to add SPF records for all accounts on cPanel server

cPanel has provided with script with which we can add spf records on cPanel account.

Being root user, run following script on server.

/usr/local/cpanel/bin/spf_installer cPanelusername

Replace cPanelusername with actual username for which you want to enable spf records.

But if you want to enable spf records for multiple accounts or all accounts on cPanel server then it is much time consuming process while you add spf records one by one on each account.

Here is simple script with which you can add spf records:

cd /var/cpanel/users
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done

===================================================>