Monthly Archives: February 2015

Logs on Linux

When troubleshooting issues with your Linux server one of the most useful resources at your disposal is the humble log file, recording your system’s activity and any problems it’s encountered. The following guide shows the basics of accessing the logs your server has created. By default most Linux logs can be found in the directory… Read More »

MySQL Master-Master Replication

MySQL Master-Master Replication This article is about setting up MySQL Master-Master database replication between two Cloud Servers. Master-Master data replication allows for replicated data, stored on multiple computers, to be updated by any authorized contributing member of the group. This allows for more open collaboration than Master-Slave replication where any needed changes identified by a… Read More »

Setting up HAProxy

Because more customers are requesting high availability (HA) setups with load balancing, Rackspace has implemented HAProxy as a software load balancer on cloud servers. When you choose the size of the load balancer, be sure to consider the bandwidth constraints of cloud servers. We recommend that you use, at minimum, a 4 GB instance for… Read More »

Ubuntu – Django Installation

Prerequisites Once you have completed the Ubuntu set up you can start a Django project. This article will guide you through the subversion installation so we can grab the latest version of Django code. First we’ll need to log into our slice: ssh -p30000 [email protected] Remember to replace 30000 with the port number you selected… Read More »

Ubuntu – Using mod_wsgi to Serve Your Application

Create the Django Application Firstt, move to your home directory and go into your public_html/domain1.com folder (if you don’t have one, create one and give it the name of your domain rather than domain1.com): cd ~/public_html/domain1.com Next, create a Django project with the django-admin.py tool: django-admin.py startproject testproject Create the Virtual Host and WSGI file… Read More »

Ubuntu – Using mod_python to serve your application

Create the Django Application First, move to your home directory and go into your public_html/domain1.com directory (if you don’t have one, create one and give it the name of your domain rather than domain1.com): cd ~/public_html/domain1.com Next, create a Django project which is done with the django-admin.py tool. In this case we will call it… Read More »

Ubuntu – mod_wsgi Installation

Prerequisites Since we’re focusing on Apache with mod_wsgi, we’ll need to have apache installed. You can follow this article specifically for detailed instructions or you can simply use the following command to install the necessary Apache componenets: sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert Note that if you follow the article you can… Read More »

Ubuntu – mod_python Installation

Prerequisites Since we’re focusing on Apache with mod_python, we’ll need to have apache installed. You can follow this article specifically for detailed instructions or you can simply use the following command to install the necessary Apache components: sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert Note that if you follow the article you can safely… Read More »

CentOS – chkconfig

Preface There are two things to take away from this article, first is a basic knowledge of runlevels, and how to just get a service to run at boot so you don’t have to worry about it if your server has to be rebooted. Run Levels Here is a little bit of information I’ve pulled… Read More »

CentOS – Hostname Change

Hostname Change There are 4 steps in a hostname change, luckily all the steps are easy. Sysconfig/Network Open the /etc/sysconfig/network file with your favorite text editor. Modify the HOSTNAME= value to match your FQDN host name. # sudo nano /etc/sysconfig/network HOSTNAME=myserver.domain.com Hosts File Change the host that is associated to your main IPaddress for your… Read More »