Installation with MAMP PRO 1.7.1

49 views
Skip to first unread message

Johan

unread,
Sep 17, 2008, 11:59:27 AM9/17/08
to Phusion Passenger Discussions
I've follow some instructions listed here in the discussion board
concerning the installation of the passenger module within MAMP.

I installed the gem and run the installer and everything worked fine.
But when i add the following lines in my httpd.conf MAMP refuses to
work.

LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/
passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.3
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/bin/ruby

Even in the apache log nothing is writen so i am kinda stuck with an
error that leaves no error :) I checked the paths and the all exist so
that can't be the problem.

Is there somewhere a log file that I can find concerning the passenger
module so I can locate the problem ? Or isn't it possible to install
this module for MAMP ?

Ow yeah i am running this on Mac OSX leopard 10.5.4 (intel core 2 duo)

thnx in advance

Drew

unread,
Sep 19, 2008, 2:44:39 AM9/19/08
to Phusion Passenger Discussions
Hi Johan,
Just so I can get a clearer idea of what could be the problem, When
you installed passenger did you set the APXS2 environment variable as
in the issue here http://code.google.com/p/phusion-passenger/issues/detail?id=3?
Also what happens when you view a rails site in a web browser do any
error screens show up?

Johan

unread,
Sep 20, 2008, 5:04:42 AM9/20/08
to Phusion Passenger Discussions
Hi Drew,

I found what went wrong but still not entirely fixed. Below a summary
of the things i did:

* Make sure you set your APXS2 variable (http://code.google.com/p/
phusion-passenger/issues/detail?id=3?)
* Make sure you have the config.vars file (http://code.google.com/p/
phusion-passenger/issues/detail?id=12)
* And last but not least, without this it won't work (http://
groups.google.com/group/phusion-passenger/browse_thread/thread/
e6dac9d5ea0de9c1). Just follow the steps listed there.

Below a log of what i type in my dash:

> login (fill in your root username and password)
> export APXS2=/Applications/MAMP/Library/bin/apxs
> echo $APXS2 (should display the path above)
> export PATH=/usr/bin/ruby:$PATH
> echo $PATH (should display the path above with some other paths)

then use the steps mention in the last thread (many thnx to Prem
Sichanugrist)

1. Run command '/Applications/MAMP/Library/bin/httpd -v' to figure
out
your Apache version
2. Browse to http://archive.apache.org/dist/httpd/ and download the
source file that is the same as your version (for me, i downloaded
httpd-2.0.59.tar.bz2)
3. Extract the file using 'tar xvf httpd-2.0.59.tar.bz2' (or the
file
name that you downloaded)
4. cd into that folder
5. Run './configure' so that apache will make some header files
ready
for you
6. Now, copy the whole 'include' folder from the Apache source to /
Applications/MAMP/Library/ (so the files should be in /Applications/
MAMP/Library/include/)
7. Copy os/unix/os.h from Apache source to /Applications/MAMP/Library/
include/
8. Now you can run 'sudo passenger-install-apache2-module' and
proceed
with the installation :D


Finally follow the installation an add the lines in your httpd.conf.

Then i add a site to my httpd.conf and i run the server. When i type
the url in my browser i am getting a 500 internal error. This is what
my apache log displays:

[Sat Sep 20 10:59:53 2008] [notice] Apache configured -- resuming
normal operations
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20752):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20757):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
[Sat Sep 20 11:00:02 2008] [error] [client 127.0.0.1] *** Unexpected
error in Passenger: Cannot spawn application '/Users/johanbuts/Sites/
quasus/pis': The spawn server has exited unexpectedly.
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20759):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
[Sat Sep 20 11:00:04 2008] [error] [client 127.0.0.1] *** Unexpected
error in Passenger: Cannot spawn application '/Users/johanbuts/Sites/
quasus/pis': The spawn server has exited unexpectedly.
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20760):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
[Sat Sep 20 11:00:05 2008] [error] [client 127.0.0.1] *** Unexpected
error in Passenger: Cannot spawn application '/Users/johanbuts/Sites/
quasus/pis': The spawn server has exited unexpectedly.
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20761):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
[Sat Sep 20 11:00:05 2008] [error] [client 127.0.0.1] *** Unexpected
error in Passenger: Cannot spawn application '/Users/johanbuts/Sites/
quasus/pis': The spawn server has exited unexpectedly.
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20762):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
[Sat Sep 20 11:00:05 2008] [error] [client 127.0.0.1] *** Unexpected
error in Passenger: Cannot spawn application '/Users/johanbuts/Sites/
quasus/pis': The spawn server has exited unexpectedly.
*** Exception SecurityError in spawn manager (Insecure operation -
directory?) (process 20763):
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `directory?'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
application.rb:45:in `detect_framework_version'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:189:in `spawn_rails_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
spawn_manager.rb:247:in `handle_spawn_application'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `__send__'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:317:in `main_loop'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
from /Library/Ruby/Gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-
server:46
[Sat Sep 20 11:00:06 2008] [error] [client 127.0.0.1] *** Unexpected
error in Passenger: Cannot spawn application '/Users/johanbuts/Sites/
quasus/pis': The spawn server has exited unexpectedly.


Hope this helps ?

On Sep 19, 8:44 am, Drew <andrewtfrank...@gmail.com> wrote:
> Hi Johan,
> Just so I can get a clearer idea of what could be the problem, When
> you installed passenger did you set the APXS2 environment variable as
> in the issue herehttp://code.google.com/p/phusion-passenger/issues/detail?id=3?

Johan Buts

unread,
Sep 21, 2008, 8:07:45 AM9/21/08
to phusion-...@googlegroups.com
I found a thread that also lists the error: "Exception SecurityError
in spawn manager (Insecure operation -
directory?" that i have in my apache error log.

http://groups.google.com/group/phusion-passenger/browse_thread/thread/9524a11c66c044d7

The solutions provided there do not work for me, just to let you know.

Tini

unread,
Sep 21, 2008, 2:12:55 PM9/21/08
to Phusion Passenger Discussions


On 17 Sep., 17:59, Johan <johan.boll...@gmail.com> wrote:
> I installed the gem and run the installer and everything worked fine.
> But when i add the following lines in my httpd.conf MAMP refuses to
> work.


I think this is due to the fact, that MAMP PRO always overwrites
httpd.conf on start.

Maybe I will write a howto when we got a solution for the problem with
the spawn server:
http://groups.google.com/group/phusion-passenger/browse_thread/thread/87cb7f385c01d0d3

Kind regards

Martin
Reply all
Reply to author
Forward
0 new messages