SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Rails tutorial runs on WebRick but not Apache??

    I'm pretty new to apache, I just installed it on Windows and listening on port 8080, I tested it with HTML and it works. Also added/tested PHP support. I went through the steps of installing ruby, then rails, added FCGI support. I then tried to start building my first app, I am walking through this http://www.onlamp.com/pub/a/onlamp/2...ls.html?page=2 cookbook tutorial.

    I can get things to work while running the WEBrick server, but I cant for the life of me seem to get it working on Apache.

    I've got the cookbook rails files installed under the htdocs dir underneath Apache's program dir.

    If I navigate to the localhost:8080/cookbook directory I get an error:

    Routing Error
    Recognition failed for "/cookbook"

    Same thing if I try localhost:8080/

    Routing Error
    Recognition failed for "/"


    I would greatly appreciate any help so I can get this running!

  2. #2
    SitePoint Zealot GWild's Avatar
    Join Date
    May 2005
    Location
    Colorado
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The webserver underwhich RoR runs for that tutorial should not matter. I did the cookbook on my local RoR install under Apache without incident.

    Check to make sure your Apache rewrite engine is enable in the .conf file, as well as turned on, and check to make sure the rewrite rules are in fact within your .htaccess file.

    -hth-
    Lang ist der weg und hart,
    das aus der hoelle fuehrt auf zum licht.


    My Site

  3. #3
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you look at any of the access/error log files from apache or the development.log file in the log folder of your rails app?

    They should be able to point you in the right direction to determine if your requests are being passed correctly to the dispatch.fcgi script.
    fo64.com - For Otters, 64 doesn't mean anything...

  4. #4
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any tutorials on making it running on apache instead of WebRick?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •