Verdant TCS

GP WP-CLI

Why? No, I mean, REALLY, why? Good question, let me elaborate… currently vCanopy servers are locked down by SSH to root users only, which somewhat curtails wp-cli and leads to a few gotchas.  It means that wp-cli can only be run as the root user using the –allow-root flag with every command. This means that any file […]

Configure PHP

UPDATE Options for customizing PHP on your individual websites are now available directly inside the UI in your site customiser! We highly recommend you use the new tab inside your vCanopy account dashboard to make any PHP changes you need, but the GP CLI detailed below is all still correct for everyone who prefers working […]

Configure MySQL

Index Configuration file and using these commandsMySQL Variables binlog_expire_logs_seconds innodb_autoinc_lock_mode innodb_buffer_pool_instances innodb_buffer_pool_size innodb_flush_log_at_trx_commit innodb_flush_method innodb_io_capacity innodb_io_capacity_max innodb_log_file_size join_buffer_size long_query_time max_binlog_size max_connections slow_query_log thread_handling thread_pool_high_prio_mode thread_pool_high_prio_tickets thread_pool_idle_timeout thread_pool_max_threads thread_pool_size thread_pool_stall_limit Configuration File and using these commands These changes are recorded in the mysqld.cnf which resides at the following filepath: /etc/mysql/mysql.conf.d/mysqld.cnf Settings configured in a mysqld.cnf are global by nature and […]

Configure Nginx

Index  ENABLE NGINX MODULES GeoIP2 Module CONFIGURE NGINX DIRECTIVES SERVERWIDE GEOIP2 CONFIGURATIONS Block/Allow countries by GeoIP2 Remove countries from GeoIP2 configuration Worker Configurations worker_connections worker_rlimit_nofile Server Name Configurations server_name_in_redirect server_name_hash_bucket_size Limits Configurations client_body_buffer_size client_body_timeout client_header_buffer_size client_header_timeout keepalive_requests keepalive_timeout large_client_header_buffers limit_req_zone reset_timedout_connection send-timeout types_hash_max_size Open File Cache Configurations open_file_cache open_file_cache_errors open_file_cache_min_uses open_file_cache_valid FastCGI Configurations fastcgi_buffering fastcgi_buffers […]

Suspend/Disable a Website

Sometimes you might need to temporarily (or otherwise) suspend/disable a client’s site. For example, this could be due to unpaid invoices, or it could be while you carry out temporary maintenance. Whatever the use case, this is easily done on vCanopy. Below will walk you through the available options. TABLE OF CONTENTS Suspend a Site […]

Set a vCanopy site as the Default Site for Nginx

Introduction  Typically, on an Nginx server, if a request to your server can’t be completed then Nginx will choose the first virtual server it can to serve alphanumerically. You might have seen this happen when you have the HSTS header for a site cached in your browser and then you create a new site on […]