红宝石乘客的麻烦

发布于 2024-09-05 10:13:03 字数 428 浏览 4 评论 0原文

当我将此代码粘贴到 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 和乘客有同样的问题吗?

when i paste this code in MAMP's 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

then MAMP wont start.

i have checked that the paths are correct.

does anyone else have the same problem with MAMP and passenger?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我纯我任性 2024-09-12 10:13:03

我也遇到了 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 的错误。

I am also getting this issue with MAMP and passenger. Is apache spitting anything useful in the error logs. I'm getting:

[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

I'm also assuming when you installed passenger-install-apache2-module it didn't come up with any errors about finding Apache.

风追烟花雨 2024-09-12 10:13:03

我认为这是因为乘客是针对 osx 内置 apache 标头“编译”的。如果您使用 MAMP,则应该根据 MA​​MP 的内置 apache 标头对其进行编译。

我不知道在安装时如何指定我使用的是哪个 apache:

$sudo passenger-install-apache2-module                                                      

欢迎乘坐 Phusion 乘客
Apache 2 模块安装程序,v2.2.11。

此安装程序将引导您完成
整个安装过程。它
不应超过 3 分钟
总计。

这是您可以期待的
安装过程:

  1. 将为您安装 Apache 2 模块。
  2. 您将学习如何配置 Apache。
  3. 您将学习如何部署 Ruby on Rails 应用程序。

如果出现任何问题,请不要担心。
该安装程序将告诉您如何
解决任何问题。

按 Enter 继续,或按 Ctrl-C 继续
中止。

<小时>

正在检查所需的软件...

  • GNU C++ 编译器...位于
    /usr/bin/g++ * Ruby 开发
    标头...发现 * OpenSSL 支持
    对于 Ruby... 已找到 * RubyGems... 已找到

    • Rake... 位于 /usr/bin/rake *rack... 位于 * Apache 2... 位于
      /usr/sbin/httpd * Apache 2
      开发标头...找到于
      /usr/sbin/apxs

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文