Google analytic can be used to gather details and statistics on your website. And its free! The guide will go through the basic steps to use google analytic without having to install an use a plugin (the more plugins you have, the more vulnerable your website is to be exploited). Quick Links: Sign up Finding […]
Posts from December 2014
xargs
xargs is a unix command used to build and execute commands from standard input. Some commands can accept standard input as a parameter or argument by using pipe (for example grep uses pipe). Other commands disregard the standard input stream and rely solely on arguments after the command (such as echo). Quick Links:
Logrotate
Logrotate can be used to prevent log files getting too large and taking up too much disk space. Quick Links: Configuring /var/logrotate.conf Log rotate configuration blocks for applications Log rotation configuration block example Log rotation ‘count’ Log rotation ‘interval’ Log rotation ‘size’ Log rotation ‘compression’ Log rotation ‘nocompress’ to prevent logs being compressed Log rotation […]
Lsyncd
The following guide will show how to do a basic install and configuration of lsync for a master-slave configuration. With this configuration lsync will sync the files every 20 milliseconds. Quick Links: Configuring ssh keys Master server installations Configuring /etc/init.d/lsyncd Configuring sync directories and slave servers in lsyncd.lua
New Relic Monitoring
New relic is a statistical monitoring tool for servers. This monitoring agent can keep an eye on things such as: CPU, Disk space, RAM usage and more. Alerts can be sent to your email address when your server gets close to its limits. New relic is free! You are able to install this agent on a […]
Holland backup
Holland backup is a way to backup your mysql databases automatically using cronjobs (rather than manually using mysqldump). The following is a guide to install holland backup. Quick Links: Installing Holland backup on CentOS Creating .my.cnf file for holland Holland backup location Missing default.conf Testing Holland backup (manually)
Installing A Mail Server (Dovecot and Postfix) Guide
Currently updating
nginx, php-fpm and server blocks
Tutorial on installing and configuring nginx webserver, php-fpm and vhost (server blocks) Quick Links: Nginx Repository Install Nginx Nginx Vhost Config nginx vhost symbolic link To install Nginx you may need to add a repo to your server. Yum repo can be added by adding an nginx repo (nginx.repo) to /etc/yum.repos.d/ Full path: /etc/yum.repos.d/nginx.repo You […]