Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Binding to port 80 or 443 with a non root user.

November 30, 2017

Apparently it's impossible to bind to a port under 2000 with a non privilaged user. Not sure how I got this far into my career without knowing that.

Anyway the solution is to run this as a root user to give the binary permission.

sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/binary

This can be problematic as every-time the binary changes you have to do it again.

Binding to port 80 or 443 with a non root user.

Lets Encrypt Setup and Auto Renew (NGINX)

July 20, 2016

Installation and Setup

sudo su  - root # NOTE: This has to be run as root. Be very careful!
cd /usr/sbin
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto

Nginx Configuration

Add the following to your nginx server configuration block vim sites-enabled/yourdomain.com

  location ^~ /.well-known/ {
    root /usr/share/nginx/html;
  }
Lets Encrypt Setup and Auto Renew (NGINX)

Setting up Rails, Passenger, Nginx, Mysql and xdelta3 on RED HAT ENTERPRISE LINUX

October 29, 2014

Step 1: Install Redhat RHEL

Step 2: Add a deploy user

adduser deploy

Step 3: Update and Install dependencies

Make sure that each line completes before running the next. Don't just copy the lines in all at once or it will use the beginning letters of one line as an answer to questions the first may ask.

sudo su - root
yum groupinstall "Development Tools" "Development Libraries"
Setting up Rails, Passenger, Nginx, Mysql and xdelta3 on RED HAT ENTERPRISE LINUX

Everything a Web Designer needs to know about Git!

September 05, 2013

Step 1: Delete your Git GUI!

Don't use Tower because somehow you'll manage to break everything in magical ways that make no sense to me.

Step 2: Assume things!

Well I'm going to assume some things. If these things aren't true, assuming they are won't actually help on your part.

  • You're using a real operating system like OSX or Linux
  • Git is already installed on your system
Everything a Web Designer needs to know about Git!