OK I got this solved, but not by figuring out GEM PATH wottsit. That way
lies madness.
I figure (in hindsight) that my Rails install was b0rked from trying
this that and the other thing, then forgetting what had already been
done in my zeal to get it working, no matter what, 6-hours later.
There are a lot of Rails deployment guides out there, and a lot of hard
ways to set up an apache server to serve rails. They all claim to be
easy. They lie.
There is also an easy way. No really. It’s called passenger. But you
already knew that. Thing is, going by google, until you happen to hit
upon passenger, you will probably hit upon all the other, hard ways
first, and try them one after the other, until your server is hopelessly
bolloxedd up, even beyond passenger help. Mea culpa.
Anyhoo, to make a long story longer, I did a complete uninstall of all
things ruby and rails, as in apt-get purge.
Then I followed this guide:
http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html
Then I ran into a snag here: apt-get -y install libapache2-mod-passenger
Ruby could not figure out where the heck is passenger:
[Wed Jun 24 18:23:47 2009] [error] *** Passenger could not be
initialized because of this error: The Passenger spawn server script,
‘/usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/passenger-spawn-server’,
does not exist. Please check whether the ‘PassengerRoot’ option is
specified correctly.
Sho’ nuff it warnt there.
So I apt-get nuked libapache2-mod-passenger, and gem-installed it
instead.
That worked.
Presto, I am serving my Rails app through Apache.
About my first post. I was trying to log onto my server VM, and my pc
forgot which window had focus.
Yes, my pc did that.