Env:
- OpenSUSE 11.4
- Apache 2.2.17
- Passenger 3.0.18
- Ruby 1.8.7
- Rails 3.2.8
I have already installed RoR application under apache - ChiliProject
(but using rails 2.3.14) and it works fine.
It's installed in /chiliproject
and In httpd config (actually in default-server since I don't have vhosts) I have "RailsBaseURI /chiliproject/public".
Now, I need to develop own application (first experience in web developing).
"rails new hello_world", Webrick works fine, but I want to run it under apache with CGI. I added "RailsBaseURI /hello_world/public". But it doesn't work properly. When I press "About your application environment" on index page it gives me 404 "The page you were looking for doesn't exist.". For any routes in rails it gives either error 500 or 404. But same routes and controllers work fine with webrick. And even if I put ChiliProject into /hello_world it works. This means that problem is not with apache or passenger.
No apache/passenger errors in log, just 404 or 500. I tried "rails 2.4.13 new hello_world" but it gives me a lot of errors and simple googling doesn't solve all of them. So, I can't easily create a new project with rails 2.4.13 which works fine with another app and I don't think it can help.
I read on the ruby website that 1.8.7 may cause crashes with rails3. After that I spent 4 hours working around RVM and different ruby versions. After all, ChiliProject (even latest version) doesn't work with ruby 1.9 and my original problem did not gone. Now I have all thing back (ruby 1.8.7 from distro's repo and no RVM).