Summary of the steps to get a Ubuntu 16.04 production server running with LAMP, multiple virtual hosts and Let's Encrypt SSL.
I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.
I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.
This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.
I appreciate the effort you've put into documenting this, but there are a number of inaccuracies here that need to be addressed. We get
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
#!/bin/sh | |
# if no args prints http and https proxy info | |
if [ -z "$1" ]; then | |
echo " Wi-Fi HTTP PROXY:" | |
networksetup -getwebproxy "Wi-Fi" | |
# if only one arg turns http and https proxy on/off | |
elif [ -n "$1" ] && [ -z "$2" ]; then | |
networksetup -setwebproxystate "Wi-Fi" $1 | |
networksetup -setsecurewebproxystate "Wi-Fi" $1 | |
# if wtwo args sets http and https proxy |
These instructions outline how to install DalmatinerDB on a single Linux x86_64 physical server or virtual machine. Scaling out will be covered in a future document. This setup guide also covers configuring CAdvisor and Telegraf to send in monitoring data and Grafana to build dashboards.
Here's how everything connects together:
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
on El Capitan, after installing the brew...
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java
And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/
Check version:
--- | |
- name: Check current timezone | |
shell: awk -F\" '{ print $2}' /etc/sysconfig/clock | |
register: current_zone | |
changed_when: False | |
- name: Set UTC timezone | |
file: src=/usr/share/zoneinfo/{{ timezone }} dest=/etc/localtime state=link force=yes | |
when: current_zone.stdout != '{{ timezone }}' |