This product is protected by United States and international copyright laws. The product’s
underlying technology, patents, and trademarks are listed at
http://www.parallels.com/trademarks.
Microsoft, Windows, Windows Server, Windows NT, Windows Vista, and MS-DOS are
registered trademarks of Microsoft Corporation.
Linux is a registered trademark of Linus Torvalds.
Mac is a registered trademark of Apple, Inc.
All other marks and names mentioned herein may be trademarks of their respective owners.
Items you must select,
such as menu options,
command buttons, or
items in a list.
Go to the System tab.
Titles of chapters,
sections, and subsections.
Read the Basic Administration chapter.
Italics
Used to emphasize the
importance of a point, to
introduce a term or to
designate a command line
placeholder, which is to be
replaced with a real name
or value.
The system supports the
so called wildcard character search.
Monospace
The names of commands,
files, directories, and
domain names.
The license file is located
in the
http://docs/common/
licenses directory.
C H A P T E R 1
Preface
Typographical Conventions
Before you start using this guide, it is important to understand the documentation
conventions used in it.
The following kinds of formatting in the text identify special information.
6 Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь
отображаться.
Preformatted
On-screen computer
output in your commandline sessions; source code
in XML, C++, or other
programming languages.
# ls –al /files
total 14470
Preformatted
Bold
What you type, contrasted
with on-screen computer
output.
# cd /root/rpms/php
CAPITALS
Names of keys on the
keyboard.
SHIFT, CTRL, ALT
KEY+KEY
Key combinations for
which the user must press
and hold down one key
and then press another.
CTRL+P, ALT+F4
Feedback
If you have found a mistake in this guide, or if you have suggestions or ideas on how to
improve this guide, please send your feedback using the online form at
http://www.parallels.com/en/support/usersdoc/. Please include in your report the
guide‟s title, chapter and section titles, and the fragment of text in which you have
found an error.
This guide provides instructions on upgrading Parallels H-Sphere 3.5.1 to version
C H A P T E R 2
About This Guide
3.6.3. If you have an earlier version, you need to upgrade to 3.5.1 first.
Before you start upgrading Parallels H-Sphere to version 3.6.3, please obtain a license
C H A P T E R 3
Preparing for Parallels H-Sphere Upgrade
for this version, as you will need it to access the upgraded Control Panel.
As both MySQL and PostgreSQL are updated in Parallels H-Sphere 3.6.3, it is strongly
recommended that you back up all databases hosted in MySQL and PostgreSQL: all
user databases on database servers, Control Panel database on Control Panel server.
In a straightforward and simple approach it can be done with the following shell
commands:
For FreeBSD:
# stop
/usr/local/etc/rc.d/apachecp.sh stop # actual only for CP server, but
no problem to run it everywhere
/usr/local/etc/rc.d/010.pgsql.sh stop
/usr/local/etc/rc.d/mysql-server stop
cp -pR /var/db/mysql /var/db/mysql-backup # you can specify other
destination directory
cp -pR /usr/local/pgsql /usr/local/pgsql-backup # you can specify
other destination directory
# start
/usr/local/etc/rc.d/mysql-server start
/usr/local/etc/rc.d/010.pgsql.sh start
/usr/local/etc/rc.d/apachecp.sh start # actual only for CP server, but
no problem to run it everywhere
For RedHat:
# stop
service httpdcp stop # actual only for CP server, but no problem to
run it everywhere
service postgresql stop
service mysql stop
cp -pR /var/lib/mysql /var/lib/mysql-backup # you can specify other
destination directory
cp -pR /var/lib/pgsql /var/lib/pgsql-backup # you can specify other
destination directory
# start
service mysql start
service postgresql start
service httpdcp start # actual only for CP server, but no problem to run it everywhere.
To upgrade Parallels H-Sphere, please perform the steps provided in this chapter.
In this chapter:
Step 1. Updating Parallels H-Sphere Control Panel Core .................................. 9
Step 2. Starting Control Panel Apache .............................................................. 10
Step 3. installing a new License ........................................................................ 10
To finalize update of Parallels H-Sphere CP core:
1. Set PostgreSQL service automatically startable on Linux:
# chkconfig—levels 2345 postgresql on
Step 2. Starting Control Panel Apache
In this section:
Option 1. Updating Physical Boxes from the Control Panel ............................... 11
Option 2. Updating Physical Boxes from Command Line ................................... 12
Finalizing update of Physical Boxes carrying Database Servers ........................ 12
Parallels H-Sphere update script will automatically launch Parallels H-Sphere CP after the
update. Check if Parallels H-Sphere is running, and if not, start CP Apache:
Linux:
# /etc/rc.d/init.d/httpdcp start
FreeBSD:
# /usr/local/etc/rc.d/apachecp.sh start
Step 3. installing a new License
1. Log in to the Control Panel as administrator.
You will be prompted to enter new license activation code.
2. Enter the code.
Now you can log out from Control Panel, unless you are going to update physical boxes
using it.
Step 4. Updating Physical Boxes
You have two options for updating Parallels H-Sphere packages on physical boxes:
Option 1. From the Control Panel (it is the only option available for Windows boxes).
Option 2. From the command line by running the installation/update script (on page 38).
After Parallels H-Sphere packages are updated, please finalize update on physical boxes
carrying database servers.
Option 1. Updating Physical Boxes from the Control Panel
To update Parallels H-Sphere on selected physical servers:
1. Go to E.Manager > Update > Update Boxes.
2. Check the servers you need to update.
3. If necessary, you can get info about the box by checking boxes and clicking
the Fetch Boxes Info button.
4. Click Start Update.
Update process indicator legend:
Yellow: ready for update
Blue: update is running
Green: update successfully finished
Red: update finished with error. If update fails, you will see an error message with details.
Peculiarities of Parallels H-Sphere’s work on Windows 2008 x64 and Windows
2008 R2 x64
Please consider the following when you intend to upgrade Parallels H-Sphere on Windows
2008 x64 and Windows 2008 R2 x64 servers from versions earlier than 3.6.3:
PHP 5.5 is built with VC11 (Visual Studio 2012 compiler) and includes improvements in
performance and stability. For the VC11 builds, the Visual C++ Redistributable for Visual
Studio 2012 x64 http://www.microsoft.com/en-us/download/details.aspx?id=30679 has to
be installed.
PHP 5.4 is built with VC9 (Visual Studio 2008 compiler) and includes improvements in
performance and stability. For the VC9 builds, the Visual C++ Redistributable for Visual
Studio 2008 SP1 x86 http://www.microsoft.com/en-us/download/details.aspx?id=5582
has to be installed.
Peculiarities of Parallels H-Sphere work on Windows 2003
Please consider the following when you intend to upgrade Parallels H-Sphere on Windows
2003 servers from versions earlier than 3.6.3:
PHP 5.4 is built with VC9 (Visual Studio 2008 compiler) and includes improvements in
performance and stability. For the VC9 builds, the Visual C++ Redistributable for Visual
Studio 2008 SP1 x86 http://www.microsoft.com/en-us/download/details.aspx?id=5582
has to be installed.
Option 2. Updating Physical Boxes from Command Line
Run the installation/update script:
# $ sh ./U36.0P3
To update Parallels H-Sphere and Parallels SiteStudio, type:
update [OPTIONS]
To update only Parallels H-Sphere, enter:
hsupdate [OPTIONS]
To update only Parallels SiteStudio, enter:
sitestudio [OPTIONS]
Important: If you have a non-standard setup of Parallels H-Sphere, please refer to Appendix
F. Parallels H-Sphere Update and Installation Script. You can refer to it also for details on the
above mentioned options.
Finalizing update of Physical Boxes carrying Database
Servers
For the Linux based physical boxes carrying PostgreSQL servers, set PostgreSQL service
automatically startable:
# chkconfig—levels 2345 postgresql on
For the physical boxes carrying MySQL server, perform databases upgrade:
# mysql_upgrade -v -u USER -p
# mysqlcheck -o -A -a -r -u USER -v -p
where value to specify instead of USER, and the corresponding password - could be read
from file ~mysql/.my.cnf on this physical box.
Step 5. Starting ImageMaker
Start ImageMaker if your Parallels H-Sphere is integrated with Parallels SiteStudio, for Linux
and FreeBSD:
# /hsphere/shared/SiteStudio/imaker.sh start
Step 6. Checking the Version of Parallels HSphere
Check the version of Parallels H-Sphere by executing the following command on your CP
box:
<HSphere-branch> is the version of Parallels H-Sphere
<HSphere-build> is the Parallels H-Sphere build
Please contact support at http://www.parallels.com/support/hsphere/ and inform them
C H A P T E R 5
Post-Upgrade Issues
about the upgrade. This is required to get appropriate support from Parallels. Also
make sure you meet the following requirements:
1. Customization. If you have custom Parallels H-Sphere templates, you may
probably need to update them according to changes introduced in this version.
More in the section Template Customization of Parallels H-Sphere Customization
Guide.
2. Ownership. In Parallels H-Sphere HTML pages, images, Javascript and CSS files
and respective directories have cpanel:httpdcp ownership. Parallels H-Sphere
updater checks and automatically sets correct ownership and permissions on
respective default and custom files and directories. Please make sure however that
newly created custom files have correct ownership and permissions (this does not
relate to Parallels H-Sphere packages).
3. VPS: After you have updated Parallels H-Sphere, please also make sure you run
Steps 3-8 of the Parallels H-Sphere VPS update instruction. For this, refer to the
section Updating Parallels H-Sphere Virtual Private Servers of Adding New HSphere Servers and Services guide.
4. DBD::mysql Perl driver. If you want to update DBD::mysql driver or system Perl
version, make sure to execute the script that updates DBD::mysql driver as
described at http://hsphere.parallels.com/misc/socket_location_mysql_server.html.
5. Set up Kronolith Reminders: If you use Kronolith reminders, make sure to set
them up according to
Before requesting Parallels H-Sphere installation, make sure to install one of the
Operating System
Supported OS Version
RedHat Enterprise Linux
5.x (i386, x86_64)
6.x (i386, x86_64)
CentOS
5.x (i386, x86_64)
6.x (i386, x86_64)
CloudLinux
5.x (i386, x86_64)
6.x (i386, x86_64)
FreeBSD
7.4 (i386, amd64)
8.3 (i386, amd64)
8.4 (i386, amd64)
C H A P T E R 6
Appendix A. Supported Operating
Systems
following operating systems:
Important:
1. We claim Parallels H-Sphere support on WhiteBox OS, assuming it is a RedHat
Enterprise Linux clone. However, we do not test Parallels H-Sphere on WhiteBox
servers.
2. FreeBSD: Control Panel installed on a server with 64-bit operating system requires
glibc 32-bit compatibility library.
3. CloudLinux is supported as a RedHat Enterprise Linux clone. The customizations
allowed by it are not propagated to UI, and should be performed manually according to
instructions published on the CloudLinux site, if needed.
4. Red Hat Enterprise Linux 4.x and its clones are supported since 3.6.0 SPU 53 for
migration purposes only.
Parallels H-Sphere is installed to the /hsphere directory.
C H A P T E R 7
Appendix B. HDD Partitioning
We recommend dedicating a separate partition for the Parallels H-Sphere installation
directory and mount it as /hsphere.
# mkdir -p /hsphere
# chmod 755 /hsphere
Parallels H-Sphere directory can be located on any other partition as well. However, we
do not recommend installing Parallels H-Sphere to the root / partition. Having Parallels
H-Sphere on the root partition may cause certain problems. For instance, if disk quota
gets damaged, you cannot repair it without server reboot and fsck check in the single
user mode.
If your Parallels H-Sphere installation directory is to be located on another partition, for
example, /usr/hsphere on the /usr partition, the /hsphere symlink to this
directory must be anyway created:
Important: Do not create /hsphere as a symlink to another partition on servers with
FreeBSD 5.3 and up. Allocate the separate /hsphere partition instead. If this is
impossible, use the nullfs partitioning for this purpose.
There are no more requirements to partitioning the servers, just make sure there is
enough disk space to store user and other Parallels H-Sphere data.
You cannot customize some major service configuration files (for Web, mail, DNS,
In this chapter:
Control Panel Apache ....................................................................................... 19
Extra Control Panel Apache Configuration Files ................................................ 19
Extra Apache Configuration Files ................................................................ ...... 21
C H A P T E R 8
Appendix C. Customizing Server
Configuration Files by Means of
Templates
databases) directly, as your changes in these files will be overwritten with a
consequent Parallels H- Sphere update! Instead, you need to create configuration file templates by means of the hsphere-update wrapper and customize these templates
instead of default configuration files.
You can customize configuration file templates by means of Parallels H-Sphere
updater, provided you have not customized your templates already. For this purpose
two new options are added to the hspackages wrapper of the Parallels H-Sphere
update script:
hspackages ctemplates=[OPTIONS] - Place custom templates for comma-
separated list of services into predefined locations if custom templates are not there
already.
Important:
If you run the hspackages ctemplates command without options, it will create custom
templates on all related servers of the Parallels H-Sphere cluster! To specify
particular servers where custom configuration templates should be created, please
use the extended syntax of the hspackages command. For example, to create PHP
custom configuration templates only on the physical boxes 192.168.1.10 and
192.168.1.11, run:
hspackages ctemplates=php ips=192.168.1.10,192.168.1.11
The hspackages ctemplates command should be run only once, in order to create
custom configuration templates! Then you customize these files according to your
needs. Next time you run it, it will prompt re-creating your custom configuration
templates, thus you may lose your customization!
The only exclusion when you need to run hspackages ctemplates again is when a
coming version of the hsphere-update package contains updates of default
configuration templates. You will be specially notified of this in the respective update
notes.
18 Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь
отображаться.
2. To immediately apply changes, run the conf file generating script which
is as a rule executed in the postinstall section of the package:
/hsphere/shared/scripts/apache-restart
Extra Control Panel Apache Configuration
Files
Parallels H-Sphere allows to customize some extra Apache configuration files for
Control Panel. They are located in the
/hsphere/local/home/cpanel/apache/conf/extra/ directory:
httpd-autoindex.conf - directives controlling the display of server-generated
If the latter file exists, then you can customize your index.html file without the risk of
its being overwritten.
Extra Apache Configuration Files
Parallels H-Sphere allows to customize some extra Apache configuration files, such as:
httpd-autoindex.conf - directives controlling the display of server-generated
3. Execute the hspackages wrapper with the ctemplates=named option:
hspackages ctemplates=named [OPTIONS]
Custom template will be placed into the following location:
/etc/named.conf.tmpl.custom
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 31
2. Edit the /etc/named.conf.tmpl.custom file according to your
needs.
3. To immediately apply changes, run the configuration file generating
script which is as a rule executed in the postinstall section of the
package:
/hsphere/local/config/bind/scripts/config_bind
/etc/resolv.conf
To leave /etc/resolv.conf unchanged during the update (e.g., when MyDNS is
used), perform:
touch /etc/resolv.conf.custom
If the latter file exists, then you can customize your /etc/resolv.conf file without
the risk of its being overwritten.
Other Files Included into Parallels HSphere Packages
Warning: It is not recommended that you customize the files included into Parallels HSphere packages by yourself. Any alterations made to them are at your own risk!
Besides customization of some major service configuration files (for Web, mail, DNS,
databases, etc.), we have implemented for your convenience a possibility to customize
other files included into Parallels H-Sphere packages. For this, we have created a
configuration file /hsphere/local/config/customs/customs.conf and a
special template /hsphere/local/config/customs/customs.conf.tmpl that
will help you to save customized Parallels H-Sphere packages files during future
updates.
To customize a file included into Parallels H-Sphere Package and save the
changes:
1. Make necessary changes to the file you want to customize.
2. Copy a template of custom files to a configuration file:
Please note that during the package updates all custom files will be saved in the
/hsphere/local/config/customs/$package_mask/ directory. The default files
of Parallels H-Sphere packages, in their turn, will be stored at
/hsphere/local/config/customs/default/$package_mask/. The above
mentioned locations store the latest versions of both custom and default files, no matter
custom or default file is being used.
This table contains codes for all Linux/FreeBSD operating systems supported by
Operating System
OSCODE
Download Location
RedHat EL 4, CentOS
4.x, White Box EL 4.x
RHES4
http://download.hsphere.parallels.c
om/shiv/HS/RHES4
RedHat EL 4, CentOS
4.x, White Box EL 4.x
(x86_64)
RHES4_64
http://download.hsphere.parallels.c
om/shiv/HS/RHES4_64
RedHat EL 5, CentOS
5.x, CloudLinux 5.5
RHES5
http://download.hsphere.parallels.c
om/shiv/HS/RHES5
RedHat EL 5, CentOS
5.x (x86_64)
RHES5_64
http://download.hsphere.parallels.c
om/shiv/HS/RHES5_64
RedHat EL 6, CentOS
6.x
RHES6
http://download.hsphere.parallels.c
om/shiv/HS/RHES6
RedHat EL 6, CentOS
6.x (x86_64)
RHES6_64
http://download.hsphere.parallels.c
om/shiv/HS/RHES6_64
FreeBSD 7.3
FBSD73
http://download.hsphere.parallels.c
om/shiv/HS/FBSD73
FreeBSD 7.3 (amd64)
FBSD73_64
http://download.hsphere.parallels.c
om/shiv/HS/FBSD73_64
FreeBSD 7.4
FBSD74
http://download.hsphere.parallels.c
om/shiv/HS/FBSD74
FreeBSD 7.4 (amd64)
FBSD74_64
http://download.hsphere.parallels.c
om/shiv/HS/FBSD74_64
In this chapter:
Mirror Server for Updating Parallels H-Sphere .................................................. 34
C H A P T E R 9
Appendix D. Download Locations
Parallels H-Sphere and links to the directories on the
http://download.hsphere.parallels.com website where you can download packages
required by Parallels H-Sphere.
34 Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь
отображаться.
Mirror Server for Updating Parallels H-
Appendix E. Creating Update Profiles for
Physical Servers
Sphere
If you have 2 and more boxes with the same operating system and you want to speed
up package downloads, you can create a mirror server and in the updater set an
alternative URL for package downloads.
To create a mirror:
1. Set up a web server (or just an IP-based virtual host in existing web
server).
2. In the web server‟s (or appropriate virtual host‟s) document root
directory, create directory shiv/HS/releases/U36.0P3/, e.g.
mkdir -p /var/www/html/shiv/HS/releases/U36.0P3/
3. Download all contents of
http://download.hsphere.parallels.com/shiv/HS/releases/U36.0/ into
s/sync360fromPublic.sh, adjust it for your paths, and run:
sh sync360fromPublic.sh
5. This will download you H-Sphere packages according to the package
lists in shiv/HS/releases/U36.0P3/.
Now you can specify this mirror server to be used by the Parallels H-Sphere
install/update script by setting the mirror parameter.
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 35
Physical server profiles are sets of rules for updating/installing physical boxes. By
default, Parallels H-Sphere includes the „DEFAULT‟ profile which can‟t be removed or
changed. If not set otherwise, the box is updated according to this DEFAULT profile.
You can create your own update profiles from the Parallels H-Sphere administrator
interface and assign them to specific boxes. In this case, the system will update the
server according to the profile it‟s assigned to.
To create a profile:
1. Go to E.Manager > Update > Physical server profiles.
2. Choose the box (Unix/Windows) and click the Add button.
3. Name and configure your profile in the form that appears:
Adding Unix profile: with some of the parameters refer to the section on
hsphere-update Package (on page 37).
Adding Windows profile check if needed the following options:
Update only pointed logical server groups. You can choose between three
hosting modes: Windows hosting only, MsSQL hosting only, or both
Windows and MsSQL hosting modes
Source URL for packages download redefinition is the link to an alternative server
with MSI packages. If not set, default MSI location is
From now on, every time you update this physical box from CP interface, it will update
according to the profile.
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 37
hsphere-update Package Reference
The hsphere-update package is installed during Parallels H-Sphere installation on
each physical box. When updating Parallels H-Sphere, it runs the upackages script on
the CP box to update Parallels H-Sphere packages on each box to their latest version.
-i - ignore md5 sum of the downloaded packages, only warning.
-f - force mode, update packages by force, when md5 sum of the installed hsphere
package differs from downloaded package.
-s - update only packages change, which takes place in the hsphere subversion
according to corresponding version.
-v version, format U[version]/U[subversion]. If not specified,
/hsphere/shared/etc/hsversion file is checked.
-V - verbose mode
-e - [show|add:pattern1,pattern2,...|del:pattern1,pattern2,...|del:all] - show, set
or delete the list of the package patterns, which must be skipped during update on
all or specific list of HS boxes.
Note: Use this carefully, as HS packages are connected with HS version. This may be
used if you have customized version of the specific HS package or if you update
system packages, like MySQL server, via native OS package manager, etc.
p - PostgreSQL update (for new HS box this is done by default)
-w - Site Studio update
-m - MyDNS service is used instead of Bind 9.3.x, Update of the bind will be
skipped.
-j - required during IP migration
-r - package update strictly according to package list (by default update of packages
with higher version skipped)
-t [php,httpd,ftpd,mysql,pgsql,cphttpd,named] - place custom templates in the
required location for further editing
-P - update to the latest SPU release.
-u - Source URL for packages download redefinition.
-n - Skip restart of postgres and httpdcp at the end of update.
S - slave installation/update mode - provides installation/update of web or mail
slave box.
-R mask1[,mask2,...] - revert mode, provides downgrade of a set of packages with
mask1[,mask2,...]
-N - this option allows to force install/update for the deprecated OS/soft listed in
http://hsphere.parallels.com/eol.html if possible.
-I - this option allows to get exclude package list from stdin (used in HS 3.1 for
different update profile configuration in CP interface). Retrieved package list is
merged with pre-configured exclude package list.
-o - skips pre-configured exclude package list during update.
For instance, to install packages for Parallels H-Sphere 3.2 Patch 1 with md5 sum of
the downloaded files ignored run:
upackages -i -v U32.0/U32.0P1
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 39
Parallels H-Sphere administrator runs the same updater for Parallels H-Sphere
In this section:
installation and update. Moreover, the updater is used to update (and even downgrade)
system packages and configuration file templates. Updater is executed from the
corresponding Parallels H-Sphere update version.
Parallels H-Sphere updater‟s main features:
Implemented backward compatibility, particularly for postgres, sitestudio,
ipmigration keys.
Using set of Parallels H-Sphere self-configured packages, which take IP dependent
information from the config.xml file with the help of the hsinfo utility.
MD5 sum check before/after package download.
Update of Parallels H-Sphere packages to the last set of available packages,
allowed by specific Parallels H-Sphere version/subversion.
Global check of the installed software after update for each box.
Possibility to add additional service/server after configuring them via CP interface.
Check of the required disk space for installation/update.
Updater can be executed either in the interactive (wrapper) or in the non-
interactive (update scipt‟s command line interface) modes.
Update is provided for all *nix physical servers in Parallels H-Sphere cluster,
including VPS servers.
Parallels H-Sphere Updater consist of two parts:
Wrapper which checks and installs, if needed, the hsphere-update package on
each box.
Set of update scripts installed as the hsphere-update package.
Interactive Mode: Command Line Interface of the Wrapper
Parallels H-Sphere updater‟s interactive mode assumes that you first launch Parallels
H-Sphere update script, like this:
# sh <updater_filename>
And then type in one of the prompted options with or without parameter in the
command line of the form that appears.
See Parallels H-Sphere updater options.
Non-Interactive Mode: Update Script’s Command Line Interface
Parallels H-Sphere update script can run in non-interactive mode, i.e., without the need
to enter the wrapper and type in the options there. Run the update script with the
wrapper‟s options, like this:
# sh <updater_filename> install cpinstall
or:
# sh <updater_filename> update hspackages ips=IP1,IP2
40 Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь
отображаться.
Update Modes and Options ............................................................................... 41
Selective Update of Parallels H-Sphere *nix Packages ..................................... 46
Updating Parallels H-Sphere with Default Configuration Files Not Customized By Means of File Templates46
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 41
Update Modes and Options
Parallels H-Sphere updater/installer is downloaded from Parallels H-Sphere download
page located at http://www.parallels.com/download/hsphere/ (to access the page, you
will have to provide details of your Parallels account).
Run the script with a corresponding option. If you run:
# sh <updater_filename>
the script will choose to update or install, according to what is available on the server:
CP Unix user cpanel
the hsphere.properties file
consistent Parallels H-Sphere system PostgreSQL database
Parallels H-Sphere related software (if user ran updater mistakenly on a non-CP
box)
Important: It is highly recommended that you run the script with a specified update or
installation mode.
To update Parallels H-Sphere, run the script in the update mode:
# sh <updater_filename> update
You will get the list of update modes, each having its own options:
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 43
3rdpackages - install missing files for Parallels H-Sphere „hsp‟ packages on
physical boxes.
3rdpackages [ help ]
This is a long term operation. To examine the output of the script use tail -f logfile
command.
revert - downgrade packages to previous versions.
Options:
revert pkgs=[ list | package_name,package_name2,.. ] [ help ]
Options’ Description:
ips - only specific list of the target boxes from HS cluster may be pointed instead of
provide check update for all IPs in HS cluster;
group - the list of logical server groups, separated by comma. Possible groups:
mail, web, dns, mysql, pgsql, cp, vps (using common ips and group tags is
allowed).
spu - update to the latest SPU release.
strict - form package list based exclusively on package list. By default, downgrade
to older package version is skipped.
nomd5 - update is not critical for wrong md5 sum, only warning;
force - check md5 sum of the installed packages with the same version too, if
wrong md5 sum, install new package by force;
skip=[check|preparing]
check - skip check-up and regeneration of the existing updater.
preparing - skip config.xml regeneration on boxes during update.
reconfig=front-end|spamassassin|all - this option is used in the case of front-end
(Horde, PhpMyAdmin, PhpPgAdmin) or SpamAssassin database location
redefinition. It provides the list of boxes allocation where update and/or related
reconfiguration is required.
mode=[hsupdate|update|ipmigration|deploy] - set update mode with one of the
options:
hsupdate - common update without postgres and sitestudio;
update - hsupdate including postgres and sitestudio;
ipmigration - reconfiguring IP dependent information;
deploy - deploy mode (post-install general box reconfiguration).
oscode - shows OS code of each box during update preparation.
mirror - allow to set another mirror instead of the default one. At this moment
available are the following Parallels H-Sphere servers:
dns=show|add|del - you can configure Parallels H-Sphere to use custom
PostgreSQL/MySQL versions instead of installing their default versions (read more
in the section Configuring H-Sphere to Use Non-Default MySQL/PostgreSQL
Versions of Parallels H-Sphere System Administrator Guide). In this case HS
updater allows excluding related package from the Parallels H-Sphere update
leaving the possibility to update them via native system package managers.
Example:
hspackages exclude-mysql=add ips=192.168.1.10
the exclude-dns= option allows to exclude standard Bind server in order to use
MyDNS server or other custom DNS servers (like djbdns, http://cr.yp.to/djbdns.html)
instead. More in the section MyDNS Installation and Configuration of Parallels H-
Sphere System Administrator Guide.
skip-exclude - skip pre-configured exclude package list during current update. Skip
pre-defined exclude list that was previously set via exclude
sitestudio - update Parallels SiteStudio to the last supported version.
sitebuilder - update Parallels Presence Builder to the last supported version
(Parallels H-Sphere 3.3+).
postgres - update postgressql to the last supported version.
url=Link - alternative path for package download (instead of
http://download.hsphere.parallels.com/shiv/HS);
verbose - inform whether package was installed by force or with nodeps;
ctemplates=php,httpd,httpd2,cphttpd,httpd_extra,httpd2_extra,cphttpd_extra,
ftpd,mysql,pgsql,named - Place custom configuration file templates for comma-
separated list of services into predefined locations if custom templates are not there
already.
the httpd_extra, httpd2_extra, and cphttpd_extra options are used to
customize some extra configuration files respectively for Web server‟s Apache 1.x
and 2.x and for CP Apache. Also the httpd2 option is introduced for Apache 2.2.
edit=IP:/path/to/custom/template - edit custom configuration file template on a
specified server in a specified location.
old-platform - this option allows to force install/update for the deprecated OS/soft
listed in http://hsphere.parallels.com/eol.htmll.
subversion - there is global hsphere package list and its subversion differences.
help2 - get additional possibilities description. This key allow to check only
subversion check to speed up update (of course, update to corresponding hsphere
version is required before);
slaves=web|mail|all - choose this option to install/update packages on slave
servers of load balanced Web/mail clusters. More in the section Installation of Load
Balanced Web/Mail Clusters of Parallels H-Sphere System Administrator Guide.
help2 - get description of additional possibilities description. This key allow to check
only subversion check to speed up update (of course, update to corresponding
hsphere version is required before);
Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь отображаться. 45
pkgs=[ list | package_name1,package_name2,.. ] - revert (downgrade) packages
separated by comma. For example: revert=hsphere-webmails,mysql,hsphere-mnogosearch
Using pkgs=list will display the list of all packages you can downgrade. Choose from
the list.
46 Ошибка! Используйте вкладку "Главная" для применения Heading 1 к тексту, который должен здесь
отображаться.
Selective Update of Parallels H-Sphere
*nix Packages
If you have customized versions of Parallels H-Sphere *nix packages or other system
packages that you update via native OS package manager, you need to exclude them
from being updated by the script. Parallels H-Sphere update in this case should be run
as follows:
Warning: Please be very careful in excluding the packages from the update list!
You must have serious reasons to do this!
3. Update Parallels H-Sphere related packages:
hspackages
Note: If you update Parallels H-Sphere packages from the interface, you can exclude
the above mentioned packages from the update by checking the Exclude package list option in the physical server profile (on page 34).
Updating Parallels H-Sphere with Default
Configuration Files Not Customized By
Means of File Templates