Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Use cases
  • Web service
    • All use cases
    • Static website in Object Storage
    • Website on LAMP or LEMP stack
    • Fault-tolerant website with load balancing from Yandex Network Load Balancer
    • Fault-tolerant website using DNS load balancing
    • Joomla-based website with PostgreSQL
    • WordPress website
    • WordPress website on a MySQL database
    • 1C-Bitrix website
  • Online stores
    • All use cases
    • 1C-Bitrix online store
    • Opencart online store
  • Data archive
    • All use cases
    • Single-node file server
    • Configuring an SFTP server on Centos 7
    • Backup to Object Storage via Acronis Backup
    • Backup to Object Storage via CloudBerry Desktop Backup
    • Backup to Object Storage via Duplicati
    • Backup to Object Storage via Bacula
    • Digitizing archives in Yandex Vision
  • Test environment
    • All use cases
    • Testing applications with GitLab
    • Creating test VMs using GitLab CI
    • High-performance computing on preemptible VMs
  • Infrastructure management
    • All use cases
    • Getting started with Terraform
    • Uploading Terraform states to Object Storage
    • Getting started with Packer
    • VM images building automation using Jenkins
    • Continuous deployment of containerized applications using GitLab
    • Creating a cluster of 1C:Enterprise Linux servers with a Managed Service for PostgreSQL cluster
    • Creating a cluster of 1C:Enterprise Windows servers with MS SQL Server
    • Migrating to Yandex.Cloud using Hystax Acura
    • Emergency recovery in Yandex.Cloud using Hystax Acura
    • Configuring a fault-tolerant architecture in Yandex.Cloud
  • Windows in Yandex.Cloud
    • All use cases
    • Deploying Active Directory
    • Deploying Microsoft Exchange
    • Deploying Remote Desktop Services
    • Deploying an Always On availability group
    • Deploying an Always On availability group with an internal network load balancer
  • Network routing
    • All use cases
    • Routing through a NAT instance
    • Creating a VPN tunnel
    • Installing a Cisco CSR1000v virtual router
    • Installing a Mikrotik CHR virtual router
    • Creating a VPN connection using OpenVPN
  • Data visualization and analytics
    • All use cases
    • Visualizing data from a CSV file
    • Visualizing data from a ClickHouse database
    • Visualizing data from Yandex.Metrica
    • Visualizing data from Yandex.Metrica Logs API
    • Publishing a chart with a map from a CSV file to DataLens Public
    • Visualizing data from AppMetrica
    • Visualizing geodata from a CSV file
  • Internet of things
    • Use cases for the internet of things
    • Status monitoring of geographically distributed devices
    • Monitoring sensor readings and event notifications
  1. Web service
  2. WordPress website

Creating a website in WordPress

  • Before you start
    • Required paid resources
  • Creating a VM for WordPress
  • Setting up WordPress
  • Configuring DNS
  • How to delete created resources

This scenario describes how to create and set up a WordPress CMS-based website using a special VM image.

To set up a website in WordPress:

  1. Create a VM for WordPress.
  2. Set up WordPress.
  3. Configure DNS.

If you no longer need the website, delete the VM with it.

Before you start

Before deploying the server, you need to sign up for Yandex.Cloud and create a billing account:

  1. Go to the management console. Then log in to Yandex.Cloud or sign up if don't already have an account.
  2. On the billing page, make sure you linked a billing account, and it has the ACTIVE or TRIAL_ACTIVE status. If you don't have a billing account, create one.

If you have an active billing account, you can create or select a folder to run your VM in from the Yandex.Cloud page.

Learn more about clouds and folders.

Make sure the selected folder has a cloud network with a subnet in at least one availability zone. To do this, select Yandex Virtual Private Cloud on the folder page. If the list contains a network, click on its name to see the list of subnets. If the subnets or network you need are not listed, create them.

Required paid resources

The cost of hosting a website in WordPress includes:

  • A fee for a continuously running VM (see Yandex Compute Cloud pricing).
  • A fee for using a dynamic or static external IP address (see Yandex Virtual Private Cloud pricing).

Creating a VM for WordPress

To create a VM:

  1. On the folder page in the management console, click Create resource and select Virtual machine.

  2. In the Name field, enter the VM name: wordpress.

    • Length — from 3 to 63 characters.
    • The name may contain lowercase Latin letters, numbers, and hyphens.
    • The first character must be a letter. The last character can't be a hyphen.
  3. Select the availability zone to host the VM in.

  4. Under Images from Cloud Marketplace, click Select. Select the WordPress public image.

  5. Under Computing resources:

    • Choose a platform.
    • Specify the necessary number of vCPUs and amount of RAM.

    The minimum configuration is enough for testing:

    • Platform: Intel Cascade Lake.
    • vCPU: 2.
    • Guaranteed vCPU share: 5%.
    • RAM: 1 GB.
  6. In the Network settings section, select the subnet to connect the VM to when creating it.

  7. In Public address, select Automatically.

  8. Specify data required for accessing the VM:

    • Enter the username in the Login field.
    • In the SSH key field, paste the contents of the public key file.
      You need to create a key pair for an SSH connection yourself. For details, see Connecting to a Linux VM via SSH.
  9. Click Create VM.

Creating the VM may take several minutes. When the VM's status changes to RUNNING, you can begin configuring the website.

When the VM is created, it is assigned a public IP address and hostname (FQDN). This data can be used for SSH access.

Setting up WordPress

After the wordpress VM's status changes to RUNNING, do the following:

  1. You can learn the IP address of the VM under Network on the VM page in the management console.

  2. Open the VM by entering its address in your browser.

  3. Select the language and click Continue.

  4. Fill out information to access the website:

    1. Enter any name for the website (for example, yc-wordpress).
    2. Specify the username to be used to log in to the admin panel (for example, yc-user).
    3. Enter the password to be used to log in to the admin panel.
    4. Enter your email address.
  5. Click Install WordPress.

  6. If the installation is successful, click Log in.

  7. Log in to the website with the username and password specified in the previous steps. This opens the admin panel, where you can start working with your website.

  8. Make sure the website is accessible by opening the VM's public IP address in your browser.

Configuring DNS

To link the website to your domain, configure DNS at your registrar as follows:

  • A record: @ subdomain (use the VM's public IP address as the address).
  • CNAME record: www subdomain (use a domain with a dot at the end as the canonical name, like example.com).

How to delete created resources

To stop paying for your deployed server, just delete the wordpress VM.

If you reserved a static public IP address specifically for this VM:

  1. Open the Virtual Private Cloud in your folder.
  2. Go to the IP addresses tab.
  3. Find the address you need, click , and select Delete.
In this article:
  • Before you start
  • Required paid resources
  • Creating a VM for WordPress
  • Setting up WordPress
  • Configuring DNS
  • How to delete created resources
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC