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?