[英]Passenger not working Mac OS X 10.6
I have a fair amount of experience installing and using mod_rails on Apache; 我在Apache上安装和使用mod_rails有很多经验。 it's been a nicely-working development environment on my Mac for a couple years now.
几年来,它一直是Mac上运行良好的开发环境。 I just upgraded to a new MacBook Air, and I have tried to replicate my environment on the new machine without luck.
我刚刚升级到新的MacBook Air,并且尝试在新机上复制我的环境,但是没有运气。 Here are the steps I followed:
这是我遵循的步骤:
Configured httpd.conf with the LoadModule and other configuration commands: 使用LoadModule和其他配置命令配置的httpd.conf:
LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-3.0.2 PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so passengerRoot /Library/Ruby/Gems/1.8/gems/passenger-3.0.2 PassengerRuby / System / Library / Frameworks /Ruby.framework/Versions/1.8/usr/bin/ruby
I set up my Rails apps on their own custom domains on my machine in file called rails.conf. 我将Rails应用程序设置在我的计算机上自己的自定义域中的文件rails.conf中。 For example, I have one of my current sites configured like so:
例如,我将当前站点之一配置为:
<VirtualHost *>
ServerName monkey.dev
DocumentRoot /Users/aaron/Sites/monkey/public
<Directory /Users/aaron/Sites/monkey/public>
AllowOverride all
Options -MultiViews
</Directory>
RailsEnv development
</Virtualhost>
And in /etc/hosts, I have the domain configured to respond on the localhost: 在/ etc / hosts中,我将域配置为在localhost上响应:
127.0.0.1 monkey.dev
So everything ought to be working. 因此,一切都应该正常工作。 But when I load monkey.dev, I just get a directory listing of my site root.
但是,当我加载monkey.dev时,我只是得到了网站根目录的目录。 It's as if Apache's working fine (it is), but Passenger isn't kicking in at all.
好像Apache的工作正常(是),但是Passenger根本没有加入。 I can find no error messages coming from it either, except for something that doesn't seem entirely related:
除了似乎并不完全相关的内容外,我也找不到任何错误消息:
[Mon Jan 03 09:33:14 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
mod_bonjour: Skipping user 'aaron' - cannot read index file '/Users/aaron/Sites/index.html'.
I'm really at a loss. 我真的很茫然。 Mongrel works just fine, so I'm getting by.
杂种效果很好,所以我过去了。 But I love the convenience of Passenger running here, so I'd like to get to the bottom of this.
但是我喜欢在这里跑步的乘客的便利性,所以我想深入了解这一点。 Any suggestions?
有什么建议么?
Update : I've found a way to increase the log level of Passenger so it delivers a bit more data. 更新 :我已经找到一种增加旅客记录水平的方法,以便提供更多数据。 With the log level set to max (3), I get this right after I start the server:
在日志级别设置为max(3)的情况下,启动服务器后我得到了以下提示:
[ pid=2841 thr=0x7fff70dbfca0 file=ext/common/Watchdog.cpp:860 time=2011-01-03 10:39:48.27 ]: All Phusion Passenger agent processes have exited.
I've searched around for hints as to what this means, but nothing's come up. 我搜索了有关这意味着什么的提示,但没有任何反应。 I've also run passenger-status:
我还运行了乘客状态:
----------- General information -----------
max = 6
count = 0
active = 0
inactive = 0
Waiting on global queue: 0
----------- Application groups ---------
It's not crapped out from the looks of things. 它不是从事物的外观中剔除的。 Hope this helps.
希望这可以帮助。
Thanks! 谢谢! Aaron.
亚伦
Got it! 得到它了! Turns out that it wasn't a Passenger problem at all.
事实证明,这根本不是旅客问题。 Instead, it was my virtual hosts configuration in Apache.
相反,这是我在Apache中配置的虚拟主机。 So, uh, never mind!
所以,嗯,没关系!
你完成了吗:
sudo apachectl restart
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.