# Unable to configure apache 1.3.29 for ruby

**URL:** <https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711>\
**Category:** Rails\
**Created:** [March 12, 2007, 5:19am UTC](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711 "2007-03-12T05:19:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janakiraman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9a140/32.png) [@janakiraman](https://www.ruby-forum.com/u/janakiraman)\
**Post date:** [March 12, 2007, 5:19am UTC](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711/1 "2007-03-12T05:19:15Z")

</div>

Hi,

I downloaded Ruby(Version:1.8.2-15) from  
[How No-Code Tools Can Automate Your Small Business? | AppMaster](http://apacheguide.org/ruby.php) and followed the instruction given  
there. Everything went fine till creating the Rails application. But  
when I ran the command ruby “C:\Program Files\Apache  
Group\Apache2\htdocs\myfirstapp\script\server” ,I get an error. Iam  
unable to start WEBrick HTTP server. But on the other hand when I click  
start-\>programs-\>ruby-\>ruby182-15-\>ruby gems-\>startrubygemsrdocserver  
Iam able to start the WEBrick HTTP server. I could see the port number  
as 8808. so I just went to the browser and type [http://localhost:8808](http://localhost:8808) I  
don’t get “congrulations,you’ve put ruby on rails” rather I get  
“RubyGems Documentation Index”.

Iam using apache 1.3.29 version.

Added the below set of lines to hhtp.conf

1)I added LoadModule fastcgi\_module modules/mod\_fastcgi.dll  
2)I added AddModule mod\_fastcgi.c  
3)\<VirtualHost \*:80\>  
ServerName rails  
DocumentRoot “E:\Projects\myfirstapp\public”  
\<Directory “E:\Projects\myfirstapp\public”\>  
Options ExecCGI FollowSymLinks  
AllowOverride all  
Allow from all  
Order allow,deny  
AddHandler cgi-script .cgi  
AddHandler fastcgi-script .fcgi

Afer doing this and when I type [http://localhost/](http://localhost/) I get “Welcome aboard  
Youâ€™re riding the Rails! Getting started Hereâ€™s how to get rolling:”

Iam not sure how to proceed next. Can anyone suggest me if iam in the  
right direction and where I gone wrong.

Thanks  
Janakiraman

---

<div class="post-metadata">

**Author:** ![janakiraman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9a140/32.png) [@janakiraman](https://www.ruby-forum.com/u/janakiraman)\
**Post date:** [March 12, 2007, 5:28am UTC](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711/2 "2007-03-12T05:28:35Z")

</div>

janakiraman wrote:

> as 8808. so I just went to the browser and type [http://localhost:8808](http://localhost:8808) I  
> ServerName rails
> 
> Afer doing this and when I type [http://localhost/](http://localhost/) I get “Welcome aboard  
> You’re riding the Rails! Getting started Here’s how to get rolling:”
> 
> Iam not sure how to proceed next. Can anyone suggest me if iam in the  
> right direction and where I gone wrong.

Change your directory to “C:\Program Files\Apache  
Group\Apache2\htdocs\myfirstapp” then try running “ruby script/server”.

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![janakiraman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9a140/32.png) [@janakiraman](https://www.ruby-forum.com/u/janakiraman)\
**Post date:** [March 15, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711/3 "2007-03-15T14:10:01Z")

</div>

Michael W. wrote:

> janakiraman wrote:
> 
> > as 8808. so I just went to the browser and type [http://localhost:8808](http://localhost:8808) I  
> > ServerName rails
> > 
> > Afer doing this and when I type [http://localhost/](http://localhost/) I get “Welcome aboard  
> > You?re riding the Rails! Getting started Here?s how to get rolling:”
> > 
> > Iam not sure how to proceed next. Can anyone suggest me if iam in the  
> > right direction and where I gone wrong.
> 
> Change your directory to “C:\Program Files\Apache  
> Group\Apache2\htdocs\myfirstapp” then try running “ruby script/server”.
> 
> –  
> Michael W.

Thanks for your response. It was very useful. I did all the necessary  
changes and when I ran the app in the browser by typing  
[http://localhost:3000/](http://localhost:3000/) I get a screen like this

Welcome aboard  
Youâ€™re riding the Rails!  
About your applicationâ€™s environment  
Getting started  
Hereâ€™s how to get rolling:  
Create your databases and edit config/database.yml  
Rails needs to know your login and password.

Use script/generate to create your models and controllers  
To see all available options, run it without parameters.

Set up a default route and remove or rename this file  
Routes are setup in config/routes.rb.

Am I in the right direction? If so what is the next step that i should  
take. If not what is the necessary step that I should take to bring up  
the application.

I need your advise.

Thanks  
Janakiraman

---

<div class="post-metadata">

**Author:** ![janakiraman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9a140/32.png) [@janakiraman](https://www.ruby-forum.com/u/janakiraman)\
**Post date:** [March 15, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711/4 "2007-03-15T14:46:18Z")

</div>

Janakiraman Mr wrote:

> > > right direction and where I gone wrong.
> 
> Set up a default route and remove or rename this file  
> Routes are setup in config/routes.rb.
> 
> Am I in the right direction? If so what is the next step that i should  
> take. If not what is the necessary step that I should take to bring up  
> the application.

Yes you are on the right track (heh). You should check out the  
screencasts and  
tutorials for Rails scattered around the Web or get one of the now many  
books  
for what to do next but basically like the above page says you need to  
create  
models and controllers (and views) and hook up your database.

As a trivial test of Rails itself you can do something like this at the  
shell  
prompt:

script/generate controller main index

Then rename, move or delete “public/index.html” and go to:

[http://localhost:3000/main](http://localhost:3000/main)

and you should see this:

Main#index

Find me in app/views/main/index.rhtml

“main” is the name of the controller you generated with the  
script/generate  
controller command. By default if you just have the controller name in  
the URL  
it’ll look for a method (called an “action” when its defined in a  
controller)  
called “index” defined in the controller and by default an action will  
render  
the .rhtml file of the same name in the app/views/  
directory.

–  
Michael W.
