Take some help moving a rails application from webrick to passenger with apache. Im very a new comer to all of this and that i cant have it running with passenger. I've attempted a lot of guides and i'm not receiving any errors aside from the rails server always using webrick rather than passenger. I'm focusing on mac small OSX as server

I seen that osx has a version of mac already installed however i read online which i should load a more recent copy and so i make certain the presently installed apache isn't running in system preferences/discussing/web discussing.

i quickly brew install apachetop. then gem install passenger and passenger-install-apache2-module .

Then i do as instructed from passenger in terminal which asks me to put some code within the httpd.conf file. that we get in /ect/apache2 from root.

Then i add the virtual host info towards the apache config file too where /public/mother is location of my rails application.

<VirtualHost *>
    ServerName localhost:3000
    DocumentRoot /public/mom
    RailsEnv development 
    <Directory /public/mom>
         AllowOverride all
         Options -MultiViews
    </Directory>
</VirtualHost>

Then i make certain apache is running with sudo apachectl start and check out running my rails server however it still is run on webrick.

I've come across posts stating that i have to make certain that passenger is setting up using the correct version of apache which i installed. how do you pressure passenger to set up using the apache i installed instead of default? shall we be held ment to become naming the servername inside the config file as localhost? Can anybody produce some guidance regarding how to obtain the rails application running with passenger . maybe i skipped some steps or misinterpreted the procedure completely. thanks

edit: below is apache error_log

    [Wed Jul 20 19:17:01 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using mini.local for ServerName
[Wed Jul 20 19:17:02 2011] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 20 19:17:02 2011] [notice] Digest: done
[Wed Jul 20 19:17:02 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 Phusion_Passenger/3.0.7 configured -- resuming normal operations
[Wed Jul 20 19:17:22 2011] [notice] caught SIGTERM, shutting down
[Wed Jul 20 19:39:32 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using mini.local for ServerName
[Wed Jul 20 19:39:45 2011] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 20 19:39:45 2011] [notice] Digest: done
[Wed Jul 20 19:39:45 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 Phusion_Passenger/3.0.7 configured -- resuming normal operations
[Wed Jul 20 19:43:33 2011] [notice] caught SIGTERM, shutting down
[Wed Jul 20 20:09:35 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Warning: DocumentRoot [/public/mom] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, using mini.local for ServerName
[Wed Jul 20 20:09:35 2011] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 20 20:09:35 2011] [notice] Digest: done
[Wed Jul 20 20:09:35 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 Phusion_Passenger/3.0.7 configured -- resuming normal operations
[Thu Jul 21 10:36:59 2011] [notice] caught SIGTERM, shutting down

"try running my rails server however it still is run on webrick", appears your webrick continues to be active.

lsof -i -P |grep 3000
kill -9 WEBRICK_PID