Topic: passenger-spawn-server & ApplicationPoolServerExecutable not in place

Hi,

i'm new to rails, so pls excuse my silly questions.

i'm trying to deploy redmine in a sub directory on debian using apache and passenger.

my problem is that on apache start the passenger mod can not be initialised due to the following error:

The Passenger spawn server script, '/var/lib/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/passenger-spawn-server', does not exist. Please check whether the 'PassengerRoot' option is specified correctly.

the file exists in a different location:

/usr/lib/phusion_passenger/passenger-spawn-server
/var/lib/gems/1.8/gems/passenger-3.0.5/helper-scripts/passenger-spawn-server

if i copy either of the above to /var/lib/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/ apache complains about a missing ApplicationPoolServerExecutable which also resides in a different location. if i copy this file across i get a

Unexpected error in mod_passenger: Cannot spawn application '/var/www/redmine-1.1': The spawn server has exited unexpectedly.
  Backtrace:
     in 'virtual boost::shared_ptr<Passenger::Application::Session> Passenger::ApplicationPoolServer::Client::get(const Passenger::PoolOptions&)' (ApplicationPoolServer.h:471)
     in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:523)

i followed various tuts and guids and managed to set up the following env:

Ruby version              1.8.7 (i486-linux)
RubyGems version          1.3.7
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Application root          /usr/share/redmine-1.1
Environment               production
Database adapter          mysql
Database schema version   20101114115359

my /etc/apache2/mods-enabled/passenger.conf looks like this:

<IfModule mod_passenger.c>
  PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.5
  PassengerRuby /usr/bin/ruby
</IfModule>

i created a soft link from /usr/share/redmine-1.1 -> /var/www/redmine and adjusted:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    PassengerAppRoot /var/www/redmine-1.1
    RailsBaseURI /redmine
    <Directory /var/www/redmine>
        AllowOverride All
        Options -MultiViews +FollowSymLinks +SymLinksIfOwnerMatch
    </Directory>

</VirtualHost>