Apache, Unicorn & SSL

On March 31, 2012, Posted by , In middleware, By ,, , With 1 Comment

Having used Apache with Mongrel, Thin and Passenger, I’ve now moved on to Unicorn.  Setting up Apache on Ubuntu to proxy to Unicorn requires the following installation commands: apt-get install apache2 -y apt-get install libapache2-mod-proxy-html libxml2-dev -y a2enmod headers a2enmod proxy a2enmod proxy_http a2enmod proxy_balancer a2enmod rewrite a2enmod ssl /etc/init.d/apache2…

Using Ruby with Postgres on Ubuntu 10.04 LTS

Installation of PostgreSQL on Ubuntu is straightforward, see http://library.linode.com/databases/postgresql/ubuntu-10.04-lucid To create a simple database with its own user use the command line: appenv=myapptst psql <<EOF create user ${appenv} createdb password ‘*****’; EOF createdb –username=postgres –owner ${appenv} ${appenv} To access the database from Rails use pg gem install pg Entries in…

Installing Phusion Passenger on Ubuntu 10.04 LTS

On September 8, 2010, Posted by , In middleware, By ,, , With 1 Comment

Before installing Phusion Passenger you will need a working installation of Rails: apt-get install ruby rubygems # distro packages rubygems 1.3.7 gem install rubygems-update PATH=$PATH:/var/lib/gems/1.8/bin update_rubygems gem install rails -v=2.3.4 # or whatever The Phusion installation script builds an Apache loadable module by linking various libraries. Make sure these libraries…

pgLoader

On August 28, 2010, Posted by , In database administration, By , , With No Comments

One of the weaknesses of PostgreSQL compared to Oracle is the lack of a strong bulk loader utility like sqlldr. Natively Postgres offers only the COPY command, which does not include suppport for a bad file and reject log. EnterpriseDB have acknowledged the need for a better tool but it…

Building a Tomcat 6 Appliance

On March 13, 2010, Posted by , In middleware,systems administration, By , , With No Comments

TurnKey have done a great job of putting together a collection of open source software appliances using Ubuntu JeOS 8.04.  Unfortunately TurnKey’s Tomcat appliance uses only Tomcat 5.5, instead of Tomcat 6 featuring Servlet 2.5 and JSP 2.1 support, which was released in March 2007.  On the plus side, however,…

Installing Oracle XE on Ubuntu

On January 16, 2010, Posted by , In database administration,systems administration, By ,, , With No Comments

Oracle XE is available for 32-bit architecture (i386) Linux only, although it may be possible to force installation on a 64-bit host. It will run in 512KB RAM but requires a 1GB swap space. Add: deb http://oss.oracle.com/debian unstable main non-free to /etc/apt/sources.list and then as root: wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- |…

Subversion on Ubuntu – Multiple Repositories

On December 5, 2009, Posted by , In software development,systems administration, By ,, , With No Comments

Eighteen months have passed since I setup Subversion on Ubuntu and I’ve found multiple repositories are valuable for providing finer grained access control and easier storage management. Here is a revised incantation: su – adduser –system –home /srv/svnrepos –gecos “System account to run svnserve” svn apt-get install subversion xinetd cat…

Installing Subversion on Ubuntu

On June 2, 2008, Posted by , In software development,systems administration, By ,, , With No Comments

There are many ways to do it, but this incantation worked for me on an Ubuntu host. This is an ‘entry level’ setup with one repository and simple authentication. Read the Subversion book and Ubuntu documentation to understand. su – apt-get install subversion adduser –system –home /srv/svn –gecos “System account…

Installing Ubuntu Server 8.04 LTS Using LVM

On May 24, 2008, Posted by , In systems administration, By ,, , With No Comments

The installation ISO for 8.04 LTS Server can be downloaded from http://www.ubuntu.com/getubuntu/download-server Ubuntu 8.04 was released in April 2008 and will be supported until April 2013. The 64bit version is recommended. I installed Ubuntu Server on a VM with a 2GB drive and 512MB RAM. The default hostname given during…