WordPress

Appliance Description

The WordPress appliance is a Virtual Machine with a preinstalled WordPress service, available for KVM Hosts.

Main Features

The WordPress appliance features:

  • Based on the latest AlmaLinux 8 Linux distribution (for x86-64)
  • No default login (local or SSH) password - must be provided via contextualization
  • Ability to automate WordPress initial configuration with contextualization parameters

Wordpress Contextualization

Contextualization parameters provided in the Virtual Machine template controls the initial VM configuration. Except for the common set of parameters supported by every appliance on the Appliances Marketplace, there are few specific to the particular service appliance.

The parameters should be provided in the CONTEXT section of the Virtual Machine template.

ParameterDefaultStageDescription
ONEAPP_SITE_HOSTNAMEroutable IPconfigureFully qualified domain name or IP
ONEAPP_DB_NAMEwordpressconfigureDatabase name
ONEAPP_DB_USERwordpressconfigureDatabase service user
ONEAPP_DB_PASSWORDrandomconfigureDatabase service password
ONEAPP_DB_ROOT_PASSWORDrandomconfigureDatabase password for root
ONEAPP_SSL_CERTconfigureSSL certificate
ONEAPP_SSL_PRIVKEYconfigureSSL private key
ONEAPP_SSL_CHAINconfigureSSL CA chain
ONEAPP_SITE_TITLEbootstrapSite Title
ONEAPP_ADMIN_USERNAMEbootstrapSite Administrator Login
ONEAPP_ADMIN_PASSWORDbootstrapSite Administrator Password
ONEAPP_ADMIN_EMAILbootstrapSite Administrator E-mail

Site Address

The service listens on the address (or, IP resolved name) defined in ONEAPP_SITE_HOSTNAME. If no parameter is provided, it tries to use the first routable address of the virtual machine. If there are only loopback address(es), it fallbacks to localhost, but at that point, the service will function only from within the virtual machine. It’s good practice to assign a proper IP address to your virtual machine and also this address as a value of ONEAPP_SITE_HOSTNAME.

Self-signed SSL certificate

For the non-production or development purposes, you can generate your own dedicated SSL certificate following way:

mkdir /root/mycerts
cd /root/mycerts
openssl req -x509 -nodes -newkey rsa:2048 -keyout key.pem -out certificate.pem -days 365 -batch

Get the content of files:

  • key.pem for contextualization param ONEAPP_SSL_PRIVKEY
  • certificate.pem for param ONEAPP_SSL_CERT

Main References