Bash Bug: Check and Fix on Ubuntu!

Bash Bug: Check and Fix on Ubuntu!
If you are a sysadmin and are running any version of Linux you need to update your servers right now to fix a Bash bug. There was an exploit found in Bash today – source (http://www.theverge.com/2014/9/24/6840697/worse-than-heartbleed-todays-bash-bug-could-be-breaking-security-for). Here is how to check if you are vulnerable. Log into to your server and run the command below. ...

Naked Domain Redirect on NGINX

This will be a quick snippet post about a problem I encountered today. What’s the best way to redirect your naked domain (like madpad.me) to “www.madpad.me” in your browser, if you are using nginx as your server? In nginx you could use an if statement to check and then redirect, but this is bad practice. ...

Running Node (Forever) on Ubuntu

In our last post, we covered how to install Node.js and nginx on Ubuntu. We had Node.js running in the background with a terminal command…but what if this process got interrupted or stopped for some reason? Then our application would stop working. We should have something in place that would start up our Node app ...

NGINX and Node on Ubuntu 12.04

In previous posts, we have covered how to set up an Ubuntu server and how to set up an Apache (web) server. There is, however, another web server that lately has been more popular and is very efficient. The other web server is called nginx. A mentor has mentioned to me several times that nginx ...

Hosting PHP with Heroku

In a previous post we have talked about using Heroku as a hosting platform for us. Often times Heroku is used with a Rails app, and most recently it has been used to host Node apps as well. Heroku, however, can also be used for hosting PHP apps. Let us cover how to use Heroku ...

Changing EC2 Instance Size on AWS

Changing EC2 Instance Size on AWS
Suppose you have an EC2 instance on AWS (Amazon Web Services) but when you had set it up, you had chosen a specific instance size. Though the size (and power) of that instance could have been good then, over time this instance could just no longer meet your needs. So…how would you go about boosting ...

Heroku with GoDaddy 15

Heroku with GoDaddy
So you have hosted your app on Heroku and you bought a domain name from GoDaddy. Now how would you connect the two? Let’s go over the steps on how to do this. There are a couple different parts. Go to the terminal and add the Godaddy domain to your Heroku app. From the command ...

Virtual Hosts with Apache on a Mac

One best practice with building websites and web applications is to build and test locally. In a previous post, we briefly covered how to deploy a WordPress install on your localhost. However this time we will cover how to install Apache on a Mac and deploy several virtual hosts. This means that if you type ...

Ubuntu Server – Users / SSH

Previously, we have talked about how to set up an Ubuntu Server on Amazon EC2. We have also shown how to set up a web server on this. Today we will cover a couple more advanced techniques like how to add SSH users. I will be working of an Ubuntu 12.10 install on EC2 for ...

Installing a Web Server on Ubuntu 5

In the previous blog post we saw how to install Ubuntu on AWS EC2. Today we will see how to install a web server on this Ubuntu instance. Here is a video of me installing all the necessary “stuff” on the Ubuntu instance. Below I’ll cover the install in more detail. Once you have SSH’ed ...