I am attempting to user Phusion Passenger to host my Rails 3 application from Ubuntu 11.04. I installed the passenger apache2 module and adopted the instructions for editing my apache2.conf file and everything. I additionally restarted my apache server and I am getting this:
- Restarting web server apache2 [Tue August 09 10:41:36 2011] [warn] module passenger_module has already been loaded, missing apache2: Couldn't dependably determine the server's properly accredited domain title, using 127..1.1 for ServerName ... waiting [Tue August 09 10:41:37 2011] [warn] module passenger_module has already been loaded, missing apache2: Couldn't dependably determine the server's properly accredited domain title, using 127..1.1 for ServerName [ OK ]
I am capable of getting to localhost/testapp however when I recieve there, rather than a rails application, I recieve an "index of /testapp" page with only the file system organized. After I run the command passenger-status, I recieve this:
ERROR: Phusion Passenger does not appear to become running.
You will find most likely multiple issues in your system, but that one is easily the most apparent:
[warn] module passenger_module is already loaded, skipping
Which means you have two "LoadModule passenger_module ..." directives inside your config files. That old the first is most likely stale and indicates a mature version of Phusion Passenger. You have to remove that or it'll cause conflicts.
Another the first is most likely associated with filesystem permissions. The consumer that Apache runs as must have the ability to check if the file 'config/atmosphere.rb' and 'config.ru' appear in your application root, i.e. it has to have executable permissions towards the necessary sites and all sorts of parent sites.
The ultimate possible problem is the fact that you've set DocumentRoot towards the application root, but you are designed to place it towards the 'public' directory.