不能得到的Phusion客运与Mac OS X山狮和Apache工作 [英] Can't get Phusion Passenger working with Mac OS X Mountain Lion and Apache
问题描述
我刚刚购买了新的Mac mini安装狮子服务器,并立即升级到山狮服务器。我接着安装RVM,轨道,客运等,因为我一直在做的(当然,最后时刻我必须安装乘客我是雪豹)。
I just purchased a new Mac mini with Lion Server installed, and immediately upgraded to Mountain Lion Server. I then proceeded to install rvm, rails, Passenger, etc as I've always done (well, the last time I had to install Passenger I was on Snow Leopard).
我也跟着在这里找到的说明:的http://贾森codes.com /职位/ MAC-OS-Rails的服务器#红宝石
I followed the instructions found here: http://jasoncodes.com/posts/mac-os-rails-server#ruby
我开始的时候/重启动Apache,但乘客模块似乎并没有得到根本加载没有错误。
I get no errors when starting/restarting Apache, but the Passenger module doesn't seem to get loaded at all.
信息为山狮Apache是pretty稀疏在那里,但它看起来像一堆配置文件从/ etc / apache2的/到/库/服务器/网络/配置/ Apache2的被感动,但我可以'吨找出我需要改变有乘客负荷。
Info for Mountain Lion apache is pretty sparse out there, but it looks like a bunch of config files have been moved from /etc/apache2/ into /Library/Server/Web/Config/apache2, but I can't figure out what I need to change to have Passenger load.
推荐答案
我面对试图山狮服务器上安装管理平台,同样的问题。
I faced the same problem while trying to install Redmine on Mountain Lion Server.
该解决方案是在我的情况很简单:
The solution was quite simple in my case:
- 安装
X code
从AppStore上 - 开启
端子
-
sudo的创业板安装乘客
-
sudo的乘客安装-Apache2的模块
-
sudo的纳米/private/etc/apache2/httpd.conf
-
粘贴
passenger_module
安装吐出到/private/etc/apache2/httpd.conf
:
- install
Xcode
from the AppStore - open
Terminal
sudo gem install passenger
sudo passenger-install-apache2-module
sudo nano /private/etc/apache2/httpd.conf
paste the lines the
passenger_module
installer spits out into/private/etc/apache2/httpd.conf
:
的LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-3.0.18
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-3.0.18
PassengerRuby /System/Library/Frameworks/Ruby.framework/Version/1.8/usr/bin/ruby
PassengerRuby /System/Library/Frameworks/Ruby.framework/Version/1.8/usr/bin/ruby
(请确保您有从安装正确的版本号 - 我的是3.0.18)
(Make sure you have the correct version number from your installation - mine is 3.0.18)
问题的关键是,在山狮服务器的Server.app有它的httpd配置文件在
The point is that in Mountain Lion Server the Server.app has it's httpd config files in
/Library/Server/Web/Config/apache2/httpd_server_app.conf
不过,您对这个文件的修改就无法识别,使他们永久的,你必须编辑 /private/etc/apache2/httpd.conf
如果您要使用的客运preference窗格你必须编译它,为precompiled版本与山狮兼容。
If you want to use the Passenger Preference Pane you'll have to compile it, as the precompiled version is not compatible with Mountain Lion.
我使用的指令从 redmine.org
:
cd ~/Downloads
git clone https://github.com/Fingertips/passengerpane/
cd passengerpane
xcodebuild
(如果你不能找到 X codebuild
,它可能会在的/ usr / bin中/ X codebuild
)
安装preference窗格。看在〜/下载/ passengerpane /构建/发布
,并双击P assenger。prefPane
安装它。
Install the preference pane. Look in ~/Downloads/passengerpane/build/Release
, and double-click on Passenger.prefPane
to install it.
希望这有助于..
干杯!
这篇关于不能得到的Phusion客运与Mac OS X山狮和Apache工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!