Posts Tagged “server”

Some interesting links to help when setting up AWStats on Ubuntu:

For example, my server doesn’t log any requests to my blog’s admin pages. This means the stats don’t contain hits for any work I’m doing on the site.

Comments Comments Off

Mongrels used way too much ram. My little underpowered VPS couldn’t handle running a cluster of mongrels in addition to everything else I’ve got going on. Enter mod_rails and Ruby Enterprise Edition.  These two free products of Phusion provide a nice, easy to setup alternative to standard Ruby and Mongrel.  I was able to remove Mongrel from my startup and use an Apache2 module for running RoR.  The only hickup I ran into was needing to reinstall a specific version of rails.  The Ruby Enterprise Edition installed seemed to pick up the newest version (2.3.2), but apparently I had a dependency on 2.2.2.  Once I got that straightened out I was able to reclaim precious megabytes of RAM.  I once again have enough breathing room that I can focus on something other than optimizations.

Phusion

Comments Comments Off

I’ve nearly completed the setup of my new host.  I’ve managed to set up the following services/programs:

  • Nginx as a reverse proxy
  • Apache2 for heavy duty needs
  • Django
  • Php
  • Postgresql (to use when possible)
  • MySQL (to use when necessary — Wordpress)
  • Mercurial
  • Ruby on Rails / Mongrel Cluster

It’s been a long journey and I’ve used several resources.  I’ll briefly list them for anybody else working on a similar project.

Finally, I had a problem with mongrel_cluster not starting automatically.  This turned out to be due to PATH issues with the rubygem binaries.  I fixed this with this command:

for file in 'ls'
do
sudo ln -s `pwd`/$file /bin/
done

That will create a symbolic link from /bin to each file in the current directory.  For rubygems this would need to be run in

/var/lib/gems/1.8/bin

And finally, everything is working!

Comments Comments Off