10.4. Installing Applications to Containers from EZ Templates

Aside from creating containers with preinstalled application templates (see Using Golden Images), you can install application templates after containers have already been created and started.

Note the following:

  • Both the host and the container require Internet access to download RPM packages.

  • The container may need a valid fully qualified domain name (FQDN).

  • The container may need a dedicated external IP address. Certain applications, like web panels, may be bound by license to external IP addresses. If the containers on the host are behind a NAT gateway and share an external IP address, you may be limited to installing one such application per host.

  • It may not be possible to reinstall, update, or uninstall an application template by means of vzpkg or otherwise.

  • It may be necessary to open the following ports in the container:

    • 2087 for cPanel

    • 2222 for DirectAdmin

    • 1500 for ISPmanager

For more information on ports, refer to the documentation for each application.

Find the desired application template with vzpkg list -A, start the container, and install the template as follows:

# vzpkg install <CT_name> <app_template>

An application may require further setup after the installation. The following subsections describe additional steps required to install some of the applications.

10.4.1. cPanel

This application template is available for CentOS 7.

The container must have at least 768MB of RAM.

To install this template in a container, do the following:

  1. Install the RPM package with the application template:

    # yum install centos-7-x86_64-ez-panels
    
  2. Install the template:

    # vzpkg install <CT_name> cpanel
    
  3. Log in to the control panel and complete the installation.

10.4.2. ISPsystem ISPmanager

This application template is available for CentOS 7 and VzLinux 8.

To install this template in a container, do the following:

  1. Depending on the container guest OS, install the RPM package with the application template:

    # yum install vzlinux-8-x86_64-ez-panels
    

    Or

    # yum install centos-7-x86_64-ez-panels
    
  2. (VzLinux 8 only) Remove MariaDB and a number of related packages to avoid conflicts with ISPmanager:

    # vzpkg remove <CT_name> -p mariadb mariadb-connector-c \
    net-snmp-agent net-snmp-agent-libs net-snmp perl-DBD-MySQL
    
  3. Install the template:

    # vzpkg install <CT_name> ispmanager
    
  4. Log in to the control panel and complete the installation.

10.4.3. Plesk

This application template is available for CentOS 7.

To install this template in a container, do the following:

  1. Install the RPM package with the application template:

    # yum install centos-7-x86_64-ez-panels
    
  2. Install the template:

    # vzpkg install <CT_name> plesk
    
  3. Log in to the control panel and complete the installation.

10.4.4. JBMC Software DirectAdmin

This application template is available for CentOS 7 and VzLinux 8.

To install this template in a container, do the following:

  1. Depending on the container guest OS, install the RPM package with the application template:

    # yum install vzlinux-8-x86_64-ez-panels
    

    Or

    # yum install centos-7-x86_64-ez-panels
    
  2. Install the template:

    # vzpkg install <CT_name> directadmin
    
  3. Note the account information in the console output (shown before the installed packages list). For example:

    <...>
    The following information has been set:
    
    Admin username:   admin
    Admin password:   jTvNZfzvW@2FYA9f
    Admin email:      admin@<hostname>
    
    Server IP: <IP_addr>
    Server Hostname: <hostname>
    
    To login now, follow this link:
    http://<IP_addr>:2222
    and enter your Admin username and password when prompted.
    <...>
    

    If you miss the account information in the console output, log in to the container as the root user and set a new password for the user admin:

    # passwd admin
    
  4. Log in to the control panel and complete the installation.