Multiple Rails Apps Under Passenger

My development server is on a home LAN behind a firewall, and I don’t want to make it a DNS sub-domain. I have directed my router to issue fixed IP addresses through DHCP, so I can use the IP address as part of the URL. Setting up multiple Rails applications is pretty easy, but if you want to mix the Rails environments (developement / test / production / custom), you need to use <Directory> to configure each Rails app: By using <Directory> you can change the behavior of each of your Rails applications as needed, including the ability to disable Passenger for non-Rails code (such as the blog shown in… Read More

Continue Reading

Rails and PHP under Ubuntu Apache

I have Ubuntu 9.10 (aka Karmic Koala) running on my laptop. It’s rapidly becoming my portable development machine, so I set up the Rails environment right away. I have decided to add PHP to the development mix, so I began to install all the PHP stuff using Ubuntu’s built-in Synaptic Package Manager found under System -> Administration. That worked fine, but oddly enough, the package manager uninstalls the Phusion Passenger module for Apache2. Huh! Here’s the executive summary to get Rails and PHP to coexist on a Ubuntu Apache server: Install all the PHP goodies Install the Passenger gem Run passenger-install-apache2-module to compile the Passenger module Add the Passenger LoadModule… Read More

Continue Reading

Theme Thrashing

I’ve never been entirely satisfied with the way my blog looks – it still feels “hard to read”, and I’m not sure how to fix that, except to experiment with some other two-column, fixed-width WP themes. So, the site will be undergoing some changes whilst I play around a bit with the look and feel. Thanks for your understanding. Regards, Chris “Tweaker” Lehman

Continue Reading