/ubuntu-installer

Ubuntu Server 12.04 LAMP Install

Primary LanguageShell

Usage

Setup

apt-get update
apt-get install aptitude
aptitude -y full-upgrade
aptitude -y install git-core
git clone git@github.com:andrewchilds/ubuntu-installer.git
cd ubuntu-installer

Setup IPTables, SSH and bash aliases

./install_core.sh

Install LAMP Stack and Plissken

./install_lamp.sh

Plissken API

Create MySQL user

$ create_mysql_user username password databasename

Create SFTP user

$ create_sftp_user username domain

Create Apache virtualhost

$ create_apache_virtualhost domain

Create Apache virtualhost and SFTP user

$ create_apache_site domain username

Create Apache subdomain

$ create_apache_subdomain subdomain domain

Delete Virtualhost

$ delete_virtualhost domain

Delete subdomain

$ delete_subdomain subdomain domain

Password protect a directory

$ password_protect directory username