I set up Passenger on manual - http://wiki.rubyonrails.org/deployment/apache-passenger Passenger and Apache install without errors. /etc/httpd/conf/httpd.conf:>> ... >> LoadModule passenger_module >> /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/ >> ext/apache2/mod_passenger.so >> PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2 >> PassengerRuby /usr/local/bin/ruby >> PassengerDefaultUser root >> ... >> <VirtualHost *:80> >> ServerName 39pk.ru >> ServerAlias www.39pk.ru >> DocumentRoot /var/www/rails/zak >> RailsEnv production >> RailsBaseURI /app >> ErrorLog logs/39pk.ru.log >> </VirtualHost> >> ...rails_app/config/enviroment.rb:>> require File.expand_path(''../application'', __FILE__) >> Zak::Application.initialize! >> Rails::Initializer.run do |config| >> config.action_controller.relative_url_root = ''/app'' # add this >> end>> # pwd >> /var/www/rails/ >> # ls -la >> итого 8 >> drwxr-xr-x. 2 root root 4096 Фев 6 16:35 . >> drwxr-xr-x. 3 root root 4096 Фев 6 15:52 .. >> lrwxrwxrwx. 1 root root 26 Фев 6 16:35 zak -> /home/up/rails3/zak/publicApache starts successfully, but instead of pages of ROR3, I see apache testpage. But apache see all files, which in public ROR directory - /home/up/rails3/zak/public What i must do to normaly run Rails? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Check your permissions, i have had similar problem before and they usually have to do we the permission of the user:group apache runs with. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
all rights to all files are 0777, i tried all the users in the user:group in httpd.conf. It did not help. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2011-Feb-10 17:34 UTC
Re: Re: ror 3 + apache2 + passenger = apache test page
>> DocumentRoot /var/www/rails/zakthis should point to the public directory, no to the app directory>> DocumentRoot /var/www/rails/zak/public-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.