environment.rb and passenger mod
Added by Erwin Mueller almost 13 years ago
Hello,
I'm using the passenger mod for redmine, and I wonder, do you need that the file environment.rb is owned by www-data (the apache user)?
Because I unpacked the redmine archive, all files are root owned. When I try to open the redmine site I get the attached error*. The permissions looks like that**. As you can see the file have read permissions. Only if I change the ownership redmine will work. (adding write permissions is not working, you have to change the ownership).
Can someone explain why you need apache-user ownership for that file?
*
Error message: no such file to load -- /var/www/aglobalscalingsoftware.com/web/projects/config/environment Exception class: LoadError Application root: /var/www/aglobalscalingsoftware.com/web/projects Backtrace: # File Line Location 0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require' 2 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 299 in `preload_application' 3 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 248 in `initialize_server' 4 /usr/lib/ruby/1.8/phusion_passenger/utils.rb 255 in `report_app_init_status' 5 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 233 in `initialize_server' 6 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 194 in `start_synchronously' 7 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 163 in `start' 8 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 209 in `start' 9 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application' 10 /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add' 11 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application' 12 /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 80 in `synchronize' 13 /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 14 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application' 15 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 154 in `spawn_application' 16 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application' 17 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in `__send__' 18 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in `main_loop' 19 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 196 in `start_synchronously' 20 /usr/lib/phusion_passenger/passenger-spawn-server 61
**
projects# ls -l config/ total 64 -rw-r--r-- 1 root root 378 2011-07-11 13:47 additional_environment.rb.example -rw-r--r-- 1 root root 3203 2011-07-11 13:47 boot.rb -rw-r--r-- 1 root root 4886 2011-07-11 13:47 configuration.yml.example -rw-r--r-- 1 root root 773 2011-10-16 12:37 database.yml -rw-r--r-- 1 root root 755 2011-07-11 13:47 database.yml.example -rw-r--r-- 1 root root 2572 2011-07-11 13:47 environment.rb drwxr-xr-x 2 root root 4096 2011-07-11 13:47 environments drwxr-xr-x 2 root root 4096 2011-10-16 12:37 initializers drwxr-xr-x 2 root root 4096 2011-07-11 13:47 locales -rw-r--r-- 1 root root 15093 2011-07-11 13:47 routes.rb -rw-r--r-- 1 root root 4246 2011-07-11 13:47 settings.yml
Replies (2)
RE: environment.rb and passenger mod
-
Added by Mischa The Evil almost 13 years ago
This is related to a feature of Passenger instead of an issue of Redmine. It is well documented in the outstanding Passenger documentation.
RE: environment.rb and passenger mod
-
Added by Erwin Mueller almost 13 years ago
Thank you very much, that is really interesting.