Hi all, I''m really stuck. I am trying to set up rails on rhel3 on apache with mod-fcgi. This rails app will be sharing apache with several other apps written in php. I am trying to access my admin controller but whenever I try to I get a 403 forbidden error. It is like apache doesn''t even call dispatch.fcgi. However is I call the web root http:/osdir.oldschool.com.sg/ instead of http://osdir.oldschool.com.sg/admin/login then i get a rails application failed to start properly. Currently my Virtual host config is <VirtualHost 202.172.239.245:80 <http://202.172.239.245:80>> <Directory /home/webadmin/osdir/public> AllowOverride All </Directory> ServerName osdir.oldschool.com.sg <http://osdir.oldschool.com.sg> DocumentRoot /home/webadmin/osdir/public SuexecUserGroup webadmin webadmin ServerAlias "www.osdir.oldschool.com.sg <http://www.osdir.oldschool.com.sg>" CustomLog "/home/webadmin/osdir.oldschool.com.sg/access_log" "combined" ErrorLog "/home/webadmin/osdir.oldschool.com.sg/error_log" AddHandler fastcgi-script .fcgi Options Indexes ExecCGI FollowSymLinks RewriteEngine On </VirtualHost> My .htaccess and dispatch.fcgi files are what is indicated in the howto. I also cannot use cgi. I can however, get webrick up and running but it gives a whole other problem with ActiveRecord. I''m just thinking of solving this first. Thanks in advance. Steven _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org
2005-May-19 17:34 UTC
Re: apache 2 fcgi - can''t seem to access actions
Couple of things. First off, let me start out by saying that I am very new to Ruby, Rails, Apache, and Linux in general. I spent the past 2-3 weeks just trying to get Ruby running using FastCGI. At one point I remember having a similar issue. One recommendation is to make sure permissions are setup properly. For my use, because it''s an internal dev box I opted to give rw to my entire Rails app. A couple links that were instrumental in my setup are: http://www.infused.org/2005/03/19/ruby-on-rails-apache-fastcgi-and-ensim/ http://wiki.rubyonrails.com/rails/show/RailsOnFedora The first link had this to say about permissions: We need to change the owner of the myapp files to be the same as the others in this site: chown -R admin99.admin99 myapp You might also find something of use here: http://del.icio.us/kheon/ruby Hope that helps.> _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails