Categories
Apps & OS's Coding

Setting the correct timezone on a Ubuntu 12.04 Server

Ok, its no rocket science but I thought I’d quickly post up this very easy way to very quickly set your server’s time-zone without the need for editing files and looking up time-zone abbreviations manually etc.  if during installation you accidentally choose the wrong time-zone or (in like my case) your VPS provided has installed a default OS image with a different time-zone. You can […]

Categories
Apps & OS's Coding

Configuring NetBeans for PSR-1 and PSR-2 coding guidelines.

Update: I’ve recently (as of February 2015) created a ‘Netbeans Module’ that you can import into Netbeans to automatically set the correct settings (instead of having to manually following this guide, see: https://github.com/allebb/netbeans-psr-formatting Recently I’ve been looking into the PHP-FIG PSR standards and in an attempt to standardise my coding styles to a widely used standard, the PSR standards look like […]

Categories
Apps & OS's Technology

Cloning linux servers easily in VirtualBox without network cards

I thought I’d share a little trick with you that I’ve recently used to enable easier cloning of virtual machines in Virtualbox (for my local development enviroment on my MacBook Pro)… Those who have attempted to ‘clone’ virtual machines in the past may have found that when attempting to clone Linux Server VM’s (specially in […]

Categories
Apps & OS's

How to redirect local root mail to an external email address on Linux

I run a home file, media and backup server at home on Ubuntu Server 12.04 LTS. I have various cron jobs set-up for various task such as backing up external MySQL databases, web site data and other tasks. By default, when a cron job runs and if the script or program that runs produces any […]

Categories
Apps & OS's Technology

Creating a highly available file server cluster for a web farm using Ubuntu 12.04 LTS

Following on from my previous post about setting up a highly available web server cluster, this post covers the next step, which is setting up a highly available file server cluster, after some research I’ve decided to use GlusterFS, GlusterFS is a  an open source, distributed file system capable of scaling to several petabytes (actually, 72 brontobytes!) and handling thousands […]

Categories
Apps & OS's Technology

Installing a high availability web server cluster on Ubuntu 12.04 LTS using HAProxy, HeartBeat and Nginx

Here are a few notes about how to set-up a high-availability web server farm using Ubuntu 12.04 LTS using a whole load of awesome software (HAProxy, HeartBeat, Watchdog and Nginx) The setup In my setup I have five virtual machines, these are named and used for the following:- haproxy1 – Our first proxy (master)/load-balancer (running HAProxy, HeartBeat […]

Categories
Apps & OS's Technology

Installing NginX, MySQL, PHP, APC and Memcache on FreeBSD 9.0

The aim of this post is to document the installation of Nginx, MySQL, PHP, APC and Memcache specifically to work as a web application server for hosting a FuelPHP application. First of all I will assume that you have already installed the base OS, configured an IP address and logged into your server using the […]

Categories
Apps & OS's Coding Technology

Installing the latest version of Ruby & Ruby On Rails on MacOSX (using RVM)

Installing Ruby (the latest version) and Rails (using RVM) on MacOSX is rather easy, this quick post will run you through installing Ruby and Rails using RVM (Ruby Version Manager) which apparently what all the ‘cool kids’ use to install rails with etc. By following these few simple steps and you should be up and […]

Categories
Apps & OS's Coding

Installing APC and Memcached on Ubuntu 12.04 with nginx

Following on from one of my previous posts (Installing nginx on Ubuntu 12.04 as a high performance web server) I have installed APC and Memcached on my Ubuntu 12.04 server It’s very simple to do and well worth it:- apt-get install php-apc Now restart your PHP FPM service like so:- /etc/init.d/php5-fpm restart You can confirm […]

Categories
Apps & OS's Technology

Configuring IPTables for a Ubuntu 12.04 web server

I recently re-built my personal web server and did a whole load of optimisations and server harding so I thought I’d document the installation of IPTables which made up one part. IPTables is a well known Linux firewall, I’ve decided to use it on my server as it’s easily avaliable from the Ubuntu package repository… Let’s start […]