1

当我将此代码粘贴到 MAMP 的 httpd.conf 中时:

LoadModule passenger_module /Volumes/Private/ajsie/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.14/ext/apache2/mod_passenger.so
PassengerRoot /Volumes/Private/ajsie/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.14
PassengerRuby /Volumes/Private/ajsie/.rvm/rubies/ruby-1.9.1-p378/bin/ruby

然后 MAMP 不会启动。

我检查了路径是否正确。

其他人对 MAMP 和乘客有同样的问题吗?

4

2 回答 2

1

我也遇到了 MAMP 和乘客的这个问题。apache 是否在错误日志中吐出任何有用的信息。我越来越:

[Wed Jun 16 16:07:39 2010] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 16 16:07:39 2010] [notice] Digest: done
[Wed Jun 16 16:07:39 2010] [notice] Apache configured -- resuming normal operations
[Wed Jun 16 16:09:29 2010] [notice] caught SIGTERM, shutting down

我还假设当您安装passenger-install-apache2-module 时,它​​没有出现任何关于查找Apache 的错误。

于 2010-06-16T15:33:17.527 回答
0

I think it's because passenger has been "compiled" against the osx built-in apache headers. If you're using MAMP, you should compile it against MAMP's built-in apache headers.

I don't know how to specify which apache I'm using when I install it:

$sudo passenger-install-apache2-module                                                      

Welcome to the Phusion Passenger Apache 2 module installer, v2.2.11.

This installer will guide you through the entire installation process. It shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

  1. The Apache 2 module will be installed for you.
  2. You'll learn how to configure Apache.
  3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to solve any problems.

Press Enter to continue, or Ctrl-C to abort.


Checking for required software...

  • GNU C++ compiler... found at /usr/bin/g++ * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found
    • Rake... found at /usr/bin/rake * rack... found * Apache 2... found at /usr/sbin/httpd * Apache 2 development headers... found at /usr/sbin/apxs
于 2010-08-08T20:08:09.653 回答