Here's the output from the installer. It looks pretty good to me.
Thanks! P
======================================================
# sudo passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v2.2.4.
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 /opt/ruby-enterprise/bin/
rake
* Apache 2... found at /usr/sbin/
apache2
* Apache 2 development headers... found at /usr/bin/
apxs2
* fastthread...
found
* Apache Portable Runtime (APR) development headers... found at /usr/
bin/apr-1-config
* Apache Portable Runtime Utility (APU) development headers... found
at /usr/bin/apu-1-config
--------------------------------------------
Compiling and installing Apache 2
module...
cd /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/
passenger-2.2.4
/opt/ruby-enterprise/bin/ruby -S /opt/ruby-enterprise/bin/rake clean
apache2
# /opt/ruby-enterprise/bin/ruby -S /opt/ruby-enterprise/bin/rake clean
apache2
(in /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/
passenger-2.2.4)
rm -rf ext/apache2/Configuration.o ext/apache2/Bucket.o ext/apache2/
Hooks.o ext/apache2/mod_passenger.o ext/apache2/
mod_passenger.so
rm -rf ext/nginx/
HelperServer
rm -r
pkg
cd ext/phusion_passenger && make
clean
rm -f ext/phusion_passenger/
Makefile
rm -rf ext/apache2/libboost_oxt.a ext/apache2/
libboost_oxt
rm -rf ext/apache2/libpassenger_common.a ext/apache2/
ApplicationPoolServerExecutable ext/apache2/
libpassenger_common
rm -rf ext/nginx/libboost_oxt.a ext/nginx/
libboost_oxt
rm -rf ext/nginx/libpassenger_common.a ext/nginx/
libpassenger_common
rm -rf test/libboost_oxt.a test/
libboost_oxt
rm -rf test/libpassenger_common.a test/ApplicationPoolServerExecutable
test/libpassenger_common
rm -rf test/oxt/oxt_test_main test/oxt/*.o test/CxxTests test/
*.o
mkdir -p ext/apache2/
libpassenger_common
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libpassenger_common/Utils.o -c ext/common/
Utils.cpp
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libpassenger_common/Logging.o -c ext/common/
Logging.cpp
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libpassenger_common/SystemTime.o -c ext/common/
SystemTime.cpp
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libpassenger_common/CachedFileStat.o -c ext/common/
CachedFileStat.cpp
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libpassenger_common/Base64.o -c ext/common/
Base64.cpp
mkdir -p ext/apache2/
libpassenger_common
rm -rf ext/apache2/
libpassenger_common.a
ar cru ext/apache2/libpassenger_common.a ext/apache2/
libpassenger_common/*.o
ranlib ext/apache2/
libpassenger_common.a
mkdir -p ext/apache2/libboost_oxt/
boost
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/boost/exceptions.o -c ext/boost/src/pthread/
exceptions.cpp
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/boost/once.o -c ext/boost/src/pthread/
once.cpp
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/boost/thread.o -c ext/boost/src/pthread/
thread.cpp
mkdir -p ext/apache2/libboost_oxt/
oxt
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/oxt/tracable_exception.o -c ext/oxt/
tracable_exception.cpp
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/oxt/system_calls.o -c ext/oxt/
system_calls.cpp
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/oxt/backtrace.o -c ext/oxt/
backtrace.cpp
g++ -Iext -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/libboost_oxt/oxt/thread.o -c ext/oxt/
thread.cpp
mkdir -p ext/apache2/libboost_oxt/boost ext/apache2/libboost_oxt/
oxt
rm -rf ext/apache2/
libboost_oxt.a
ar cru ext/apache2/libboost_oxt.a ext/apache2/libboost_oxt/boost/*.o
ext/apache2/libboost_oxt/oxt/*.o
ranlib ext/apache2/
libboost_oxt.a
g++ ext/common/ApplicationPoolServerExecutable.cpp -o ext/apache2/
ApplicationPoolServerExecutable -Iext -Iext/common -fPIC -DLINUX=2 -
D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0
-I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -
DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/
include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/
include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/
apache2 -D_REENTRANT -I/usr/local/include -Wall -g -DPASSENGER_DEBUG -
DBOOST_DISABLE_ASSERTS ext/apache2/libpassenger_common.a ext/apache2/
libboost_oxt.a -
lpthread
gcc -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/mod_passenger.o -c ext/apache2/
mod_passenger.c
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/Configuration.o -c ext/apache2/
Configuration.cpp
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/Bucket.o -c ext/apache2/
Bucket.cpp
g++ -Iext -Iext/common -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o
ext/apache2/Hooks.o -c ext/apache2/
Hooks.cpp
g++ -shared ext/apache2/Configuration.o ext/apache2/Bucket.o ext/
apache2/Hooks.o ext/apache2/mod_passenger.o -fPIC -o ext/apache2/
mod_passenger.so -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/
usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/
include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/
local/include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS ext/
apache2/libpassenger_common.a ext/apache2/libboost_oxt.a -fPIC -L/usr/
lib -lapr-1 -L/usr/lib -laprutil-1 -
lpthread
cd ext/phusion_passenger && /opt/ruby-enterprise/bin/ruby
extconf.rb
creating
Makefile
cd ext/phusion_passenger &&
make
gcc -I. -I/opt/ruby-enterprise/lib/ruby/1.8/armv5tejl-linux -I/opt/
ruby-enterprise/lib/ruby/1.8/armv5tejl-linux -I. -
D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c
native_support.c
gcc -shared -o native_support.so native_support.o -L. -L/opt/ruby-
enterprise/lib -Wl,-R/opt/ruby-enterprise/lib -L. -rdynamic -Wl,-
export-
dynamic
--------------------------------------------
The Apache 2 module was successfully
installed.
Please edit your Apache configuration file, and add these
lines:
LoadModule passenger_module /opt/ruby-enterprise/lib/ruby/gems/1.8/
gems/passenger-2.2.4/ext/apache2/
mod_passenger.so
PassengerRoot /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/
passenger-2.2.4
PassengerRuby /opt/ruby-enterprise/bin/
ruby
After you restart Apache, you are ready to deploy any number of Ruby
on Rails
applications on Apache, without any further Ruby on Rails-
specific
configuration!
Press ENTER to continue.
--------------------------------------------
Deploying a Ruby on Rails application: an example
Suppose you have a Ruby on Rails application in /somewhere. Add a
virtual host
to your Apache configuration file, and set its DocumentRoot to
/somewhere/public, like this:
<VirtualHost *:80>
ServerName
www.yourhost.com
DocumentRoot /somewhere/public # <-- be sure to point to
'public'!
</VirtualHost>
And that's it! You may also want to check the Users Guide for security
and
optimization tips and other useful information:
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/doc/
Users guide Apache.html
Enjoy Phusion Passenger, a product of Phusion (
www.phusion.nl) :-)
http://www.modrails.com/
Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.