Phusion white papers Phusion overview

Phusion Passenger 2.2.1 released

By Hongli Lai on April 18th, 2009

It has only been two days since the initial release of Phusion Passenger for Nginx, and it has already exceeded our wildest expectations. Only minutes after publishing the announcement, hundreds of people visited our blog. Our bandwidth usage skyrocketed and was heavily utilized for quite some time. There were hundreds upon hundreds of tweets. Thank you all for your enthusiasm! :)

CPU usage Bandwidth usage

Shortly after the release, the first bug reports came in. Some people were having compilation problems. We know that many of you are eager to try Phusion Passenger for Nginx, and we don’t want to keep you waiting, so we’ve made it a priority to get this bugfix release out of the door as soon as possible.

Today, we proudly present Phusion Passenger 2.2.1! The changes are as follows:

  • Fixed compilation errors caused by warnings. Some people on 64-bit Linux platforms might experience this. Issue #249.
  • Fixed http_rewrite_module support. The installer was supposed to only deactivate it if PCRE is not installed, because rewrite_module depends on PCRE. Because of a typo it disabled rewrite_module even if PCRE is installed. Fixes issue #251.
  • Fixed Nginx 0.7 support. Issue #252.
    Phusion Passenger 2.2.0 actually supports an older version of Nginx 0.7, but it seems that recent Nginx releases broke it again. The 0.7 series of Nginx is changing rapidly, so we’ve decided to only support the latest version of the 0.7 series.
    So if you’re running Nginx 0.7.x, and Phusion Passenger doesn’t compile correctly, then please check whether you’re running the latest version of the 0.7 series.

How do I upgrade to 2.2.1?

Via a gem

Please install it with the following command:

gem install passenger

Next, run:

passenger-install-apache2-module

or

passenger-install-nginx-module

Please don’t forget to copy & paste the Apache/Nginx config snippet that the installer gives you.

Via a native Linux package

John Leach from Brightbox has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find
at:

http://apt.brightbox.net

Add the following line to the Third Party Software Sources:

deb http://apt.brightbox.net hardy main

(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run ‘apt-get update’).

Once you’ve done this then you can install Phusion Passenger by running:

apt-get install libapache2-mod-passenger

Final

If you like our work, please recommend us on Working With Rails.

Hongli Lai Ninh Bui
  • Wijnand

    It still bombs out due to a warning on OpenBSD:
    gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /tmp/pcre-7.8 -I objs -I src/http -I src/http/modules -o objs/src/http/modules/ngx_http_upstream_ip_hash_module.o src/http/modules/ngx_http_upstream_ip_hash_module.c
    gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /tmp/pcre-7.8 -I objs -I src/http -I src/http/modules -I src/mail -o objs/addon/nginx/ngx_http_passenger_module.o /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.1/ext/nginx/ngx_http_passenger_module.c
    /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.1/ext/nginx/ngx_http_passenger_module.c: In function `start_helper_server’:
    /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.1/ext/nginx/ngx_http_passenger_module.c:254: warning: missing sentinel in function call
    *** Error code 1

    Stop in /usr/ports/www/nginx/w-nginx-0.6.34p0/nginx-0.6.34 (line 977 of objs/Makefile).
    *** Error code 1

    Stop in /usr/ports/www/nginx/w-nginx-0.6.34p0/nginx-0.6.34 (line 3 of Makefile).

    This is easily fixed by changing line 254 to: (char *)NULL);

    It still bombs out however, maybe I’ll have a look later.
    /usr/lib/libstdc++.so.45.0: warning: strcpy() is almost always misused, please use strlcpy()
    /usr/lib/libstdc++.so.45.0: warning: strcat() is almost always misused, please use strlcat()
    /usr/lib/libstdc++.so.45.0: undefined reference to `log’
    /usr/lib/libstdc++.so.45.0: undefined reference to `sqrt’
    /usr/lib/libstdc++.so.45.0: undefined reference to `cosh’
    /usr/lib/libstdc++.so.45.0: undefined reference to `finitef’
    /usr/lib/libstdc++.so.45.0: undefined reference to `cos’
    /usr/lib/libstdc++.so.45.0: undefined reference to `tanh’
    /usr/lib/libstdc++.so.45.0: undefined reference to `sin’
    /usr/lib/libstdc++.so.45.0: undefined reference to `atan2′
    /usr/lib/libstdc++.so.45.0: undefined reference to `pow’
    /usr/lib/libstdc++.so.45.0: undefined reference to `sinh’
    /usr/lib/libstdc++.so.45.0: undefined reference to `log10′
    /usr/lib/libstdc++.so.45.0: undefined reference to `exp’
    /usr/lib/libstdc++.so.45.0: undefined reference to `tan’
    collect2: ld returned 1 exit status
    *** Error code 1

  • Wijnand

    Sorry for the noise, I am certain now the last error is my own fault.

  • http://andrew.chalkley.org Andrew Chalkley

    Once again wow!

    Keep up the good work guys!

  • Richy

    I execute the config command manual such as “/configure –prefix=’/usr/local/nginx’ –add-module=’/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.0/ext/nginx’”. We couldn’t use nginx
    without rewrite_mod. :)

  • http://blog.startika.com labria

    Thanks a lot for the quick fixes!

  • http://www.railscluster.nl Roderick van Domburg

    Updated, thanks!

  • http://www.cabchap.com Tom Schlenkhoff

    Excellent work! Extremely quick turnaround, thanks!

  • Sergey A. Osokin

    Could you specify tarball’s URL?

    Thank you.

  • http://www.phusion.nl/ hongli

    It’s on the “Install” page on the website.