MySQL Replication Master/Slave

MySQL Replication Master/Slave

Methods to make your data redundant is an good practice in production environments with High Availability. MySQL Replication can support this kind of HA. In my blog post I want to explain how I build replication between an Master and Slave node. In my example I have run MySQL on Windows Server but this will also work with Linux hosts. Configure the Master node Before we can replicate MySQL the server needs to be accessible on the network the slave…

Read More Read More

WordPress on IIS Webserver

WordPress on IIS Webserver

WordPress is a popular CMS system to use for blogs and other websites. Not every system administrator has knowledge on Linux systems so for some it’s handy to have the WordPress PHP and MySQL installed under Microsoft Windows Server with IIS. One of the options to fast install WordPress with an MySQL database is with the Web Platform Installer which can be downloaded here: https://www.microsoft.com/web/downloads/platform.aspx Another option is to install it manual, as I will describe in this post. Pre installation…

Read More Read More

Windows ACL with PowerShell

Windows ACL with PowerShell

During automatic deployments I bumped in to the issue that special account permissions need to be set. For example if we deploy an CMS system there can be an upload folder included where the user need to write. Rather then giving full permissions for the web server user account we set specific permission on the upload folder. In this blog post I will show how to do this with PowerShell on Windows Server 2008 R2 and higher. After research for the…

Read More Read More

Simple ASP.NET Core WebAPI

Simple ASP.NET Core WebAPI

With .NET Core that is available on GitHub it’s now possible to start developing with the .NET framework on different Operating Systems. Also it make the run/test process really quick. In this how-to we will create an webapi to display City names. Let’s start with the preparation and install  Microsoft Visual Studio and .NET Core SDK. Visual Studio To start an new project Visual Studio can create projects and add auto fill functions during coding. To start the Community edition contains…

Read More Read More

XML files in LogStash

XML files in LogStash

How to import my custom XML files in ElasticSearch, luckily Logstash is there to help. Let’s create an example XML file that we want to import in Elasticsearch. Copy the text below and save this as ‘.xml’, you can also use your own XML. Building the Logstash config file XML files can be readed by Logstash with the multi line option under the input file. Below I show my example configuration file; The filter part of the configuration will read the XML….

Read More Read More

ElasticSearch cluster with Docker

ElasticSearch cluster with Docker

In previous posts I explained how-to create the Docker Cluster including the overlay network. Before we can start with the ElasticSearch Cluster it’s required to have the overlay network in place. Let’s get started with the ElasticSearch containers. For this example we will use the following configuration: Docker-Host-Master with IP 192.168.0.1 Docker-Host-02 with IP 192.168.0.2 Network created in docker with overlay drivers and name “clusternetwork”. Network “clusternetwork” has subnet “192.168.20.0/24”. Again you can read my previous post to make sure this is…

Read More Read More

Build an small Docker Cluster

Build an small Docker Cluster

When starting with Docker it mostly run on a single host to test, as soon as the amount of Docker containers grow you can split it to more hosts and even create an Docker Cluster. In this topic I will create an small cluster so all Docker machines can be controlled from one command. To make sure the Docker hosts share information I used Consul. Next to Consul we need to make the Docker daemon accessible for the network and set-up an Docker Swarm to…

Read More Read More

Custom Google Analytics plugin for WordPress

Custom Google Analytics plugin for WordPress

There are many plugins available on the web, but you can also create your own ‘simple’ Google Analytics plugin. Create new PHP file in /wp-content/plugins folder, for example: examplegoogleanalytics.php Add the following code in the PHP file Enter the WordPress Admin and activate the plugin. If this solution is not working check if your theme have the wp_head hook in the header.php available.