Monthly Archives: August 2016

Installing Kubernetes Cluster with 3 minions on CentOS 7 to manage pods and services

Kubernetes is a system for managing containerized applications in a clustered environment. It provides basic mechanisms for deployment, maintenance and scaling of applications on public, private or hybrid setups. It also comes with self-healing features where containers can be auto provisioned, restarted or even replicated. Kubernetes is still at an early stage, please expect design… Read More »

Deploying a registry server

Running on localhost Start your registry: docker run -d -p 5000:5000 –restart=always –name registry registry:2 You can now use it with docker. Get any image from the hub and tag it to point to your registry: docker pull ubuntu && docker tag ubuntu localhost:5000/ubuntu … then push it to your registry: docker push localhost:5000/ubuntu …… Read More »

How To Install and Use Mosh

Installation To get started, Mosh must first be installed on both the client and the server. Fortunately, Mosh packages exist on most popular distributions and below are the installation methods for some of the distributions offered on DigitalOcean. On Ubuntu: sudo apt-get install python-software-properties sudo add-apt-repository ppa:keithw/mosh sudo apt-get update sudo apt-get install mosh On… Read More »

Encrypting and decrypting documents

A public and private key each have a specific role when encrypting and decrypting documents. A public key may be thought of as an open safe. When a correspondent encrypts a document using a public key, that document is put in the safe, the safe shut, and the combination lock spun several times. The corresponding… Read More »

How To Restore Managed WordPress Backups

Pre-Flight Check This article applies specifically to Liquid Web’s Managed WordPress servers. Restoring a site from backup will completely overwrite all of its existing content (both the files and the database). If you are not completely certain that the existing files will no longer be needed, you may wish to back up the database and… Read More »

How to Back up and Restore the CSF Firewall Configuration

Prior to making direct edits to the firewall configuration file or changing advanced firewall settings in WHM, a backup of the current configuration should be taken so that the settings can quickly and easily be reverted if needed. Pre-Flight Check This series assumes you have the ConfigServer Firewall (CSF) installed on your cPanel server, and… Read More »

How to Block Traffic by Country in the CSF Firewall

One of the most-requested features on cPanel servers is the ability to manage and filter traffic at a country level. With the ConfigServer Firewall (CSF) plugin in WebHost Manager, you can do exactly that. Country-level filtering in CSF uses the Maxmind GeoLite Country database to obtain CIDR (Classless Inter-Domain Routing) ranges for specific countries. Each… Read More »

Basic DoS/DDoS Mitigation with the CSF Firewall

Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks are common threats that every publicly accessible web server faces. The purpose of such attacks, in simplest terms, is to flood a server with connections, overloading it and preventing from accepting legitimate traffic. Attacks increasingly have become automated instead of directly targeted and botnets… Read More »

How to Disable MySQL Strict Mode

MySQL’s, and MariaDB’s, strict mode controls how invalid or missing values in data changing queries are handled; this includes INSERT, UPDATE, and CREATE TABLE statements. With strict mode enabled, which is the default state, invalid or missing data may cause warnings or errors when attempting to process the query. When strict mode is disabled the… Read More »

How to Start and Enable Firewalld on CentOS 7

It is highly recommended that you have a firewall protecting your server. Pre-Flight Check These instructions are intended specifically for enabling and starting firewalld CentOS 7. I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root. Enable Firewalld To enable firewalld, run the following command as… Read More »