From: stephen.hill@... (Steve Hill) Date: 2004-10-04T22:04:53+09:00 Subject: Re: [nuby] Can't get rails to work David Heinemeier Hansson wrote in message news:... > > OK, I'm not a complete nuby - I've been using Ruby for almost 5 years > > now. But this is my first delve into the wonderful world of web apps. > > > > I have a stock Suse 8.0 installation, ruby 1.8, apache 1.3 and > > rails-0.6.5 (from tarball) installation. I have tried installling > > rails according to the README file. > > The one thing you don't want to be bogged down with when learning a new > environment is configuration. The best way to avoid that is to go with > GEMs for installation and WEBrick as the web server. The installation seems fine - I don't have web access on my Linux box - so I tend to take tars and unzip them > > You can learn about GEMs with http://www.rubyonrails.org/show/GemRails. > > Once you have that up, you can start the WEBrick server with "cd > public; ruby dispatch.servet -a". > > Then go to http://localhost:3000 -- you're on Rails! I did try that but I couldn't get it to go - could it be colliding with the Instiki WEBrick server? > > > ..once you're ready to play around with Apache again, here are my > suggestions: > > > Rails has gone into /usr/local/httpd/cgi-bin/rails. I couldn't find an > > apache.conf file, but there was a httpd.conf file in /etc/httpd. > > That sounds like the one you want.. > > > > > ServerName rails > > DocumentRoot /usr/local/htppd/cgi-bin/rails/public/ > > It looks like you got httpd wrong as "htppd". Apache is not really to > good about being clear on errors like that. They often mask as > Permissions Denied. > > > and I have restarted Apache. > > So, the basic problem is that none of the following web addresses give > > me the rails spalsh page > > http://rails - unknown host > > http://127.0.0.1/rails - not found > > http://127.0.0.1/cgi-bin/rails - forbidden > > You need to add this line to your /etc/hosts file: > > 127.0.0.1 rails Aha! I will try everything you have suggested - thanks for the help regards Steve > -- > David Heinemeier Hansson, > http://www.rubyonrails.org/ -- Web-application framework for Ruby > http://www.instiki.org/ -- A No-Step-Three Wiki in Ruby > http://www.basecamphq.com/ -- Web-based Project Management > http://www.loudthinking.com/ -- Broadcasting Brain > http://www.nextangle.com/ -- Development & Consulting Services > > > !DSPAM:415d6df1678164797017188!