This forum is no longer active. Please post your questions to our new community site
Cannot Get Apache (localhost) To Show My Work
|
|
Hello, I am really excited about Ruby on Rails but this is my maiden voyage. I can’t seem to get it working correctly so I’ve come here for some input and assistance. Below i’ve documented my process for trying to setup and test a sample page….
C:\Documents and Settings\Administrator\BitNami RubyStack projects>rails sample
C:\Documents and Settings\Administrator\BitNami RubyStack projects>cd sample C:\Documents and Settings\Administrator\BitNami RubyStack projects\sample>ruby script/server => Booting Mongrel (use ‘script/server webrick’ to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server
end
<title> My Sample Page </title> </head> <body>
</body></html> After completing all these steps, I go to my firefox browser and type in 3 different addresses in an attempt to call the page I just created I get the following.
http://localhost/sample/greeting/
http://localhost/sample/greeting/hello.rhtml
First off, I noticed that rubystack default to creating its document in the C:\Documents and Settings\User\BitNami RubyStack projects\ subdirectory. Working with Apache on my local machine in the past, I’ve always placed my working folders in the ‘htdocs’ directory in the Apache program folder. Could this be the reason I’m not having success. If it’s not, then please help…. Environment: |
|
|
Hi wehoman, Thank you for the very well documented question. Everything looks ok but the URL you write in your browser. It should be http://localhost:3000/greeting/hello . Explanation: When you start your application through
Or specify it through the command line with regards |
|
|
Hi Manuel, Thanks for the reply. I did what you told me and I am now getting feed back from the process. Unfortunately, I did not get the result I was expecting “Hello World” , but at least I’m getting some information that points to what’s broken. Can you help me determine what the following informantion means or how to correct it? Based on the information I entered above and going to http://localhost:3000/greeting/hello, the browser returns the following:
|
|
|
Hi again, That usually means that your application can’t connect to the MySQL database. Have you configured your application with the file good luck |
|
|
Thanks Manuel, I will check out the info and let you know how it worked out for me. |

