Runtime dependencies

In order to successfully install, configure, and deploy Swarm, the following dependencies are required:

Optional dependencies:

Supported operating system platforms

Because Swarm includes binary versions of P4PHP (the Perforce extension for PHP), we support Swarm on the following operating systems:

Recommended for CentOS/RHEL 6: Change the following parameters in the [Pcre] section of the /etc/php.ini file to the values shown below. This ensures that very large comments are displayed:

You may be able to get Swarm running on another platform if you build P4PHP yourself and satisfy the other runtime dependencies. Instructions on how to obtain and build P4PHP from source can be found here.

Important

P4PHP does not support threaded operation. If you compile P4PHP from source, ensure that the version of PHP you compile for is non-threaded.

Apache web server

Swarm requires Apache HTTP Server 2.2 or newer:

Swarm also requires the following Apache modules:

Important

Only the prefork MPMMulti-Processing Module, a component of the Apache web server that is responsible for binding to network ports, accepting requests, and dispatch operations to handle the request. is supported. Use of the worker or event MPMs is not supported and is likely to cause problems because P4PHP does not support threaded operation.

For more information on the prefork MPM, see:

PHP

Swarm requires PHP 5.3.3+, 5.4.x, 5.5.x, 5.6.x, or 7.0:

Important

PHP must be non-threaded because P4PHP does not support threaded operation.

Swarm requires the following PHP extensions:

Swarm greatly benefits from the following PHP extensions:

Helix Core Server requirements

Swarm works with any supported version of the Helix Server (Standard Maintenance). The versions supported in this release of Swarm are:

Download Helix Server from here: https://www.perforce.com/downloads/helix-core-p4d

Helix Server automated user requirements for Swarm

Swarm requires an automated user with at least admin privileges in the Helix Core Server to enable Swarm to run against the Helix Server. This can be an existing user, or a new user created specifically to support Swarm.

Important

If your Helix Server is configured for Multi-Factor Authentication (MFA), the user account running Swarm must not use MFA.

For more information about setting up Helix Core Server, see Installing and upgrading the server in Helix Core Server Administrator Guide: Fundamentals.

Trigger dependencies

Swarm triggers are installed on the Helix Server during Swarm installation.

The Swarm triggers require perl 5.08+:
https://www.perl.org/get.html

On the Windows platform, we have tested Swarm against Strawberry Perl. There are two Perl modules that are also required which may not be part of a minimal Perl installation.

Swarm triggers also require the following perl modules to be installed:

Swarm package installation on the same machine as P4D

If Swarm is installed from a package on the same machine as P4D, the triggers require the following perl modules to be installed:

Worker dependencies

The recurring task to invoke Swarm workers, installed in a later step, requires either of:

Supported web browsers

The following browsers are supported for use with Swarm:

Other web browsers might also work, including prior, development or beta builds of the above web browsers, but are not officially supported.

Note

JavaScript and cookies must be enabled in the web browser for Swarm to operate.

Optional dependencies

LibreOffice

Swarm can display previews of office-type documents when LibreOffice is installed on the Swarm server. Installation is not required, but when LibreOffice is installed Swarm automatically detects its presence.

For more information about LibreOffice, see LibreOffice.

Zip

You can download a ZIP archive of files/folders when the zip command-line tool is installed on the Swarm server.

For more information about installing and configuring Zip, see Zip archive.

Security-enhanced Linux (SELinux)

Swarm supports SELinux on CentOS 7. SELinux is an advanced access control mechanism that improves security for Linux distributions.

SELinux operates in one of three modes:

See SELinux on CentOS 7 configuration for details.

If you see a Swarm configuration error similar to the error shown below, SELinux has not been correctly configured for Swarm. Check you have configured SELinux on CentOS 7 correctly.

Choose the installation process

Once you have reviewed the Runtime dependencies and know that you can satisfy them, there are a number of ways to install Swarm.

Tip

Installing Swarm using Install and configure Swarm from a package ensures that all of the Swarm dependencies are installed and is the easiest way to install Swarm.

Choose one of the following installation processes: