To set up a mirror:
The utility is a binary file named as follows: psa_installer_v<auto-installer version>_os_<operating system version>_<platform>. If you have Plesk installed on the server, you can use the autoinstaller binary file, which is stored in the directory /usr/local/psa/admin/bin/ on RPM-based Linux and FreeBSD systems, and /opt/psa/admin/bin/ on deb-based Linux systems.
You can use any of your existing domains, or create a new domain specifically for that purpose. Let's assume you will use the domain updates.example.com.
Look up the value of the 'HTTPD_VHOSTS_D' variable in the /etc/psa/psa.conf file. This variable stores the path to the location of virtual hosts. Let's assume that this will be the /var/www/vhosts/ directory.
Within the /var/www/vhosts/ directory, there are subdirectories for each domain. The names of those subdirectories coincide with names of existing domains. In our example we will have the following path to the virtual host: /var/www/vhosts/updates.example.com/.
All documents available via HTTP protocol are stored in the 'httpdocs' subdirectory within the virtual host.
Therefore the absolute path to the directory where the updates will reside will be /var/www/vhosts/updates.example.com/httpdocs/.
As you probably will not need a copy of all contents of the official Plesk update server, you should choose what Plesk versions for what operating systems you want to mirror. To obtain a list of available product versions:
autoinstaller --show-all-releases
A list of product versions will be displayed:
PLESK_7_5_4 (Plesk 7.5.4)
PLESK_7_5_5 (Plesk 7.5.5)
PLESK_8 (Plesk 8)
Release identifiers are shown on the left, and release names are given in brackets. You will need to use these identifiers when working with the auto-installer through command line.
autoinstaller --select-release-id <release ID> --show-os-list
A list of operating systems will show operating system names, their versions and identifiers:
FreeBSD 5.2.1: plesk_7.1.7_fr5.2.1.inf
FedoraCore Linux 1: plesk_7.1.7_fc1.inf
FedoraCore Linux 2: plesk_7.1.7_fc2.inf
SuSE Linux 9.0: plesk_7.1.7_suse9.0.inf
For instance, plesk_7.1.7_fc2.inf is the identifier of Fedora Core Linux 2 operating system. You will need to use these identifiers when you run auto-installer for downloading packages to the local mirror.
For instance, if you wish to set up a mirror for Plesk 7.1.7 for Fedora Core 2 and Plesk 8.0 for Fedora Core 1 and Fedora Core 2, run the following command:
autoinstaller --select-release-id PLESK_7_1_7
--mirror-os plesk_7.1.7_fc2.inf
--select-release-id PLESK_8_0
--mirror-os plesk_8.0.0_fc1.inf
--mirror-os plesk_8.0.0_fc2.inf
--target /var/www/vhosts/updates.example.com/httpdocs/
Note that when specifying several Plesk versions, the following sequence of options should be preserved:
--release id 1 --mirror-os 1 --release id 2 -- mirror-os 2
The '--target' option points to the directory where package files are stored. This is the directory within a virtual host that you selected at the step 2.
Note: All releases and operating systems should be specified in a single command line.