You are here: Forums Ask a Rails expert Passenger Installation Needs T...
Posted in Forums : Ask a Rails expert
Authority 0
Posting Rating 0
Sign in to rate this post
|
Hi All, After much trouble, I finally got Passenger installed. Apparently installing it via the GEM placed it in directories that ended up being inaccessible to other processes and so prevented Apache from even starting. That aside, I now have two issues: 1) My application root ”/” isn’t routing me to a new session. I must explicitly type “session” at the end of the “URL” in order for it to work. Otherwise, I got the Apache “IT WORKS!” screen. 2) No formatting. For some reason, my pages aren’t using the CSS, Flash or Javascript I have in the public directory. I set the permissions on the entire application folder to ‘chown -R www folder_name’, but that had no effect. What am I missing? Thanks, |
Authority 25
Posting Rating 99
Sign in to rate this post
|
It sounds like you didn’t set up your DocumentRoot to point to the app’s public directory. Check out some of the discussion under http://www.workingwithrails.com/forums/4-ask-a-rails-expert/topics/269-problems-trying-to-run-two-apps-under-passenger—it may help. |
Authority 0
Posting Rating 0
Sign in to rate this post
|
Actually, I did, but Apache still routes to it’s own “index” page if I don’t explicitly call a controller. I’m also having issues with Apache/Passenger where it will just stop working and I have to restart the server. Is there something wrong with my setup? To my knowledge I followed the setup guidelines explicitly. |
Authority 25
Posting Rating 99
Sign in to rate this post
|
It definitely sounds like there’s something wrong with the setup. Could you post the relevant Apache configuration information? Either in a pastie or here (be sure to use pre tags around it if you post here) |
Authority 0
Posting Rating 0
Sign in to rate this post
|
Alright, well this is my httpd.conf file in its entirety: http://pastie.org/private/p7hxw6sszqn4pgcpw7dw I’ve tried both versions of ruby, both the default as well as Ruby Enterprise Edition. ...and this is the rails.conf file in its entirety: http://pastie.org/private/xlszfd6tad9jy6f4mrvg After Apache+Passenger quit working this time, I tried rebooting the server and was forced to have APlus (formerly Cedant) do it manually when the server wouldn’t come back up. I am now getting the following when I attempt to start apache: Fatal error ‘mutex is on list’ at line 540 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 31) ..and this is the contents of the ‘thr_mutex.c’ file: |
Authority 25
Posting Rating 99
Sign in to rate this post
|
Troubleshooting POSIX thread libraries is definitely outside the scope of this site, but I will say that if you made any significant upgrades to packages as you were attempting to get things working, it may be worthwhile to reinstall passenger (that is, let it recompile and link against any libraries as they exist now) |
Authority 0
Posting Rating 0
Sign in to rate this post
|
Fair enough. I’ll look into it further later. FYI, my apologies for the slow response. I’ve been out of town for a while. |
Ask a Rails expert : calling functions from model to controller
Ask a Rails expert : calling functions from model to controller
Ask a Rails expert : rspec examples?
Ask a Rails expert : Radio buttons with Observe field
Ask a Rails expert : copy to clipboard
Ask a Rails expert : API call problem
Ask a Rails expert : Invoke a plugin from a plugin?
Ask a Rails expert : Restful problem