Blix
This chapter describes how to set up a cloud server instance (droplet) as a vhost on the DigitalOcean, and how to use specific tools (such as the console) provided by DigitalOcean.
Table of contents
Introduction
Configuration
pvn
This configuration is the smallest one we recommended for Drupal 9. It uses a swap file to satisfy the memory requirements of composer. This is OK for a development site. However, since this configuration uses SSD, a swap file may case hardware degradation over time if the site receives heavy traffic, so you should not this configuration on a high traffic production website.
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal $ grep MemTotal /proc/meminfo MemTotal: 65 758 708 kB $ df -h Filesystem Size Used Avail Use% Mounted on udev 32G 0 32G 0% /dev tmpfs 6.3G 1.8M 6.3G 1% /run /dev/md1 865G 1.9G 819G 1% / tmpfs 32G 0 32G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 32G 0 32G 0% /sys/fs/cgroup tmpfs 6.3G 0 6.3G 0% /run/user/1000 tmpfs 6.3G 0 6.3G 0% /run/user/1001 Filesystem Size Used Avail Use% Mounted on udev 978M 0 978M 0% /dev tmpfs 199M 932K 198M 1% /run /dev/vda1 49G 7.7G 41G 16% / tmpfs 994M 0 994M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 994M 0 994M 0% /sys/fs/cgroup /dev/vda15 105M 3.9M 101M 4% /boot/efi /dev/loop0 55M 55M 0 100% /snap/core18/1754 /dev/loop1 55M 55M 0 100% /snap/core18/1705 /dev/loop2 69M 69M 0 100% /snap/lxd/14804 /dev/loop3 70M 70M 0 100% /snap/lxd/14890 /dev/loop4 28M 28M 0 100% /snap/snapd/7264 tmpfs 199M 0 199M 0% /run/user/1000 $ free -m total used free shared buff/cache available Mem: 64217 173 63634 1 408 63435 Swap: 15248 0 15248 $ nproc 12 $ uname -i x86_64 $ mysql --version mysql Ver 8.0.20-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)) $ php --version PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
- Cost: $10/month + VAT
- Ubuntu 20.04 LTS
- 2 GB RAM
- 4 GB Swap
- 1 kernel
- 49 GB SSD disk
- 2 TB transfer
The memory requirements of composer is on the heavy side so you should make sure that there is at least 4 GB of RAM available. If you're using a traditional hard disk you may resolve this by creating swap file to accomodate this. If your VM uses SSD, a swap file may case hardware degradation over time, and you may need to go with a plan with 4 GB of physical RAM.
Troubleshooting
Final word
Last update: 2020-07-27 [gh].