I'm attempting to configure Apache V2 to handle two Rails (3.2.2) applications at the same time using VirtualHost directives. I'm doing this on a local laptop. (Ubuntu, Ruby 1.9.2, and Passenger 3.0.12.)
Used the deployment instructions in "Agile Web Development .... Rails", V4. The first simple application booted up w/o problem.
I then created a 2nd simple app with very similar characteristics. Edited /etc/apache2/apache2.conf with a second VirtualHost directive, and edited /etc/hosts to map the 2nd named URL to the same 127.0.0.1 address.
Restarting Apache blows up as shown below:
apache2: Syntax error on line 240 of /etc/apache2/apache2.conf: Cannot load /home/bubby/.rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.12/ext/apache2/mod_passenger.so into server: /home/bubby/.rvm/gems/ruby-1.9.2-p180/gems/passenger 3.0.12/ext/apache2/mod_passenger.so: cannot open shared object file: No such file or directory
Both apps were bundled with Passenger. "locate mod_passenger.so" returns the correct location. Is there a better way to do this?