Skip to content

Instantly share code, notes, and snippets.

@edtoon
edtoon / gist:6358598
Last active December 21, 2015 20:00
example mod_vhost_dbd / wildcard hosting server
#########################
# install binary stuffs #
#########################
apt-get install apache2 apache2-prefork-dev libaprutil1-dbd-mysql unzip mysql-server
mkdir -p /usr/local/src/mod_vhost_dbd
cd /usr/local/src/mod_vhost_dbd
wget http://dbd-modules.googlecode.com/files/dbd-modules-1.0.6.zip
unzip dbd-modules-1.0.6.zip
apxs2 -c mod_vhost_dbd.c
@edtoon
edtoon / gist:5903004
Last active December 19, 2015 05:19
Bootstrap an Ubuntu 12.04 server with Autoconfigamajigger
#!/bin/bash
INSTALL_ROOT=${INSTALL_ROOT:-/opt/subdue}
INSTALL_USER=${INSTALL_USER:-subdue}
INSTALL_GROUP=${INSTALL_GROUP:-${INSTALL_USER}}
AUTO_LOG=${AUTO_LOG:-/var/log/autoconfigamajigger.log}
if [ -z "${MAJIG_URL}" ];
then
echo "Please define MAJIG_URL before running"