Skip to content
A bunch of StackScripts that I use to easily deploy full web+db+django stack at
Shell Python
Latest commit 52c39cb Feb 6, 2014 @nigma Update readme
Failed to load latest commit information.
1 - StackScript Bash
122 - No need to install mod-wsgi from source anymore. May 15, 2012
123 - Ignore error codes for empty ls response (for `set -e` shell flag). Jun 26, 2012
124 - Added iotop to installed utils. May 16, 2012
125 - Function postgresql_recreate_cluster is not needed anymore. May 15, 2012
126 -
127 - Parametrized paths and removed unnecessary functions. May 17, 2012
128 -
130 - Renamed script to match source id. Jun 26, 2012
131 - Stack - Security, PostgreSQL, MySQL, MongoDB, Apache, Update readme Feb 6, 2014

Linode StackScripts

Please note

These scripts may be a bit outdated now although the solution served me well on many occasions. I have now moved to Ansible and other configuration management tools that are just much metter than the bash scripts approach, although you may pick up some configs and scripting ideas from here.

If there is an interest in a similar full-stack web-server setup go ahead and open a ticket and I can prepare a set of Ansible roles and playbooks with Nginx & uWSGI as the web server.

Original readme

A StackScript shell script that configures a complete web environment with Apache, PostgreSQL/MySQL/MongoDB, Python, mod_wsgi, virtualenv and Django.

Optionally creates a PostgreSQL/MySQL user and database and installs MongoDB NoSQL database.

By default, it creates a VirtualHost using the reverse DNS of your Linode's primary IP and sets up a sample Django project in the /srv directory.

Installs common system and dev utilities, sets up postfix loopback, Uncomplicated Firewall and Fail2Ban.

Writes command output to /root/stackscript.log and records /etc changes using Mercurial. When completed notifies via email.

Something went wrong with that request. Please try again.