apache - change rails app from webrick to passenger -


need moving rails app webrick passenger apache. im new , cant running passenger. have tried bunch of guides , not getting errors apart rails server using webrick instead of passenger. working on mac mini osx server

i seen osx comes version of mac installed read online should load newer copy make sure installed apache not running in system preferences/sharing/web sharing.

then brew install apachetop. followed gem install passenger , passenger-install-apache2-module .

i follow instructions passenger in terminal asks me place code in httpd.conf file. find in /ect/apache2 root.

i add virtual host info apache config file /public/mom location of rails app.

<virtualhost *>     servername localhost:3000     documentroot /public/mom     railsenv development      <directory /public/mom>          allowoverride          options -multiviews     </directory> </virtualhost> 

i make sure apache running sudo apachectl start , try running rails server still runs using webrick.

i have seen posts saying need make sure passenger installing correct version of apache installed. how force passenger install apache installed rather default? ment naming servername within config file localhost? can give me guidance on how rails app running passenger . maybe missed steps or misunderstood process completely. thanks

edit: below apache error_log

    [wed jul 20 19:17:01 2011] [warn] init: session cache not configured [hint: sslsessioncache] httpd: not reliably determine server's qualified domain name, using mini.local servername [wed jul 20 19:17:02 2011] [notice] digest: generating secret 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 not configured [hint: sslsessioncache] httpd: not reliably determine server's qualified domain name, using mini.local servername [wed jul 20 19:39:45 2011] [notice] digest: generating secret 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 not configured [hint: sslsessioncache] warning: documentroot [/public/mom] not exist httpd: not reliably determine server's qualified domain name, using mini.local servername [wed jul 20 20:09:35 2011] [notice] digest: generating secret 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 rails server still runs using webrick", seems webrick still active.

lsof -i -p |grep 3000 kill -9 webrick_pid 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -