Vultr instances are a great way to run your WordPress blog, but a more notable extension to WordPress is WooCommerce, an eCommerce plugin that extends the functionality of WordPress to allow you to sell products.
Generally, you will want to have at least a 4GB Vultr compute instance. This is because of the memory and processor constraints that lower instances carry, and a moderately sized store will require at least the suggested instance size. However, it is possible to run it on the 512MB plan, with optimizations that will be further discussed.
In order to maximize performance, we will be using NGINX. WordPress and Nginx can be installed by launching a Vultr One-click WordPress app.
Once you've accomplished this, take note of the domain you'll be using and the IPv4 address of your WordPress app.
Take a look at the NGINX configuration with your favorite text editor:
nano /etc/nginx/nginx.conf. Find the line
worker_processes 1 and change it to the number of CPU cores allocated to your VPS. You can typically find this by typing
cat /proc/cpuinfo | grep "processor" | wc -l, or taking a look at the instance size you chose.
worker_connections 1024 to the gigabytes of RAM multiplied by 256. On a 2GB instance, this would be 2*256 = 512 connections.
Save the configuration, then exit.
In order to download the latest version of the plugin, you'll need to sign up for an account at WooCommerce. When you've signed up, you will be greeted with a small survey. Fill in the survey with your store details, then stop when you've reached step 6.
Locate the download button for the WooCommerce plugin. Right click the download button and copy the link.
On your instance, type in
cd /var/www/html/wp-content/plugins to enter the WordPress plugin directory. Then, enter
wget -O woocommerce.zip LINK_WE_COPIED_EARLIER, and unzip it:
Head over to the plugins section in your WordPress administrator area, and activate WooCommerce.
This is the part where you'll need to configure some products. This can be done with the products tab on the sidebar. If you'd like to extend the functionality of WooCommerce, click on the WooCommerce tab and you'll be able to manage its' extensions.
In this article, you created a WooCommerce shop on WordPress, using Vultr's one-click application installer. Happy selling!