passenger 3.0.17 → 3.0.18

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

data/NEWS CHANGED
@@ -1,3 +1,12 @@
1
+ Release 3.0.18
2
+ --------------
3
+
4
+ * Fixed compilation problems on Fedora 17.
5
+ * Fixed Union Station compatibility with Rails 3.2.
6
+ * Phusion Passenger Enterprise Standalone now supports rolling
7
+ restarts and deployment error resistance.
8
+
9
+
1
10
  Release 3.0.17
2
11
  --------------
3
12
 
@@ -1504,7 +1504,7 @@ Attribution-Share Alike 3.0 Unported License</a>.</p></div>
1504
1504
  <div id="footnotes"><hr></div>
1505
1505
  <div id="footer">
1506
1506
  <div id="footer-text">
1507
- Last updated 2012-06-14 11:55:27 CEST
1507
+ Last updated 2012-10-23 21:45:15 CEST
1508
1508
  </div>
1509
1509
  </div>
1510
1510
  <script>/*! jQuery v1.7.1 jquery.com | jquery.org/license */
@@ -1360,13 +1360,31 @@ about setting up Ruby on Rails and Phusion Passenger on OpenSolaris and EC2.</p>
1360
1360
  </div>
1361
1361
  <div class="sect2">
1362
1362
  <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h3 id="_upgrading_or_downgrading_phusion_passenger" data-comment-topic="upgrading-or-downgrading-phusion-passenger-1dl8km6">2.3. Upgrading or downgrading Phusion Passenger</h3>
1363
- <div class="sect3">
1364
- <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h4 id="_via_a_gem_or_a_source_tarball" data-comment-topic="via-a-gem-or-a-source-tarball-1vgkwhs">2.3.1. Via a gem or a source tarball</h4>
1365
- <div class="paragraph"><p>To upgrade or downgrade Phusion Passenger via the gem or the source tarball, install the newer
1366
- or older version as you normally would; that is, install the gem or unpack the tarball, and
1367
- run <span class="monospaced">passenger-install-apache2-module</span>. Eventually <span class="monospaced">passenger-install-apache2-module</span> will tell
1368
- you to copy &amp; paste some settings into the Apache configuration file; something that looks along
1369
- the lines of:</p></div>
1363
+ <div class="paragraph"><p>Upgrading or downgrading Phusion Passenger for Apache involves several steps.</p></div>
1364
+ <div class="olist arabic"><ol class="arabic">
1365
+ <li>
1366
+ <p>
1367
+ First, you have to obtain and install the files associated with the version that you want to upgrade or downgrade to. You can do this in three ways: by using <a href="#upgrade_or_downgrade_with_rubygems">RubyGems</a>, by downloading a <a href="#upgrade_or_downgrade_with_tarball">tarball</a>, or by installing a <a href="#upgrade_or_downgrade_with_linux_packages">native Linux package</a>. If you installed a native Linux package, then skip to the last step. If not, read on.
1368
+ </p>
1369
+ </li>
1370
+ <li>
1371
+ <p>
1372
+ Then you have to recompile the Phusion Passenger Apache module by invoking
1373
+ </p>
1374
+ <div class="listingblock">
1375
+ <div class="content monospaced">
1376
+ <pre># If you used RubyGems
1377
+ sudo passenger-install-apache2-module
1378
+
1379
+ # If you used the tarball
1380
+ sudo /path-to-passenger/bin/passenger-install-apache2-module</pre>
1381
+ </div>
1382
+ </div>
1383
+ </li>
1384
+ <li>
1385
+ <p>
1386
+ Finally, <span class="monospaced">passenger-install-apache2-module</span> will tell you to copy &amp; paste some settings in the configuration file. Something that looks along the lines of:
1387
+ </p>
1370
1388
  <div class="listingblock">
1371
1389
  <div class="content monospaced">
1372
1390
  <pre>LoadModule passenger_module ...
@@ -1377,14 +1395,42 @@ PassengerRuby ...</pre>
1377
1395
  <div class="paragraph"><p>Because you already had Phusion Passenger installed, you already had similar settings
1378
1396
  in your Apache configuration file, just with different values. <strong>Replace</strong> the old settings with
1379
1397
  the new ones that the installer outputs. It is important that the old settings are removed,
1380
- otherwise Phusion Passenger may malfunction.</p></div>
1381
- <div class="paragraph"><p>When you’re done, restart Apache.</p></div>
1398
+ otherwise Phusion Passenger may malfunction.
1399
+ 4. Restart Apache. You’re now done.</p></div>
1400
+ </li>
1401
+ </ol></div>
1402
+ <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h4 id="upgrade_or_downgrade_with_rubygems" class="float" data-comment-topic="obtaining-phusion-passenger-files-with-rubygems-8fz7a8">Obtaining Phusion Passenger files with RubyGems</h4>
1403
+ <div class="paragraph">
1404
+ <div class="title">Open source</div>
1405
+ <p>You can obtain the files associated with the latest <em>open source</em> Phusion Passenger release by invoking the following command:</p>
1382
1406
  </div>
1383
- <div class="sect3">
1384
- <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h4 id="_via_a_native_linux_package" data-comment-topic="via-a-native-linux-package-8dvooa">2.3.2. Via a native Linux package</h4>
1385
- <div class="paragraph"><p>There are no special instructions required to upgrade or downgrade Phusion Passenger
1386
- via a native Linux package.</p></div>
1407
+ <div class="listingblock">
1408
+ <div class="content monospaced">
1409
+ <pre>sudo gem install passenger</pre>
1410
+ </div>
1411
+ </div>
1412
+ <div class="paragraph"><p>You can also obtain a specific version by specifying the <span class="monospaced">-v</span> argument, like this:</p></div>
1413
+ <div class="listingblock">
1414
+ <div class="content monospaced">
1415
+ <pre>sudo gem install passenger -v 3.0.0</pre>
1416
+ </div>
1417
+ </div>
1418
+ <div class="paragraph">
1419
+ <div class="title">Enterprise</div>
1420
+ <p>If you’re using <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a> then you should obtain the gem from the <a href="https://www.phusionpassenger.com/orders">Customer Area</a> instead. Login with your order reference and password. The Customer Area will show you a list of files. Download the gem file for the version you want (<span class="monospaced">passenger-enterprise-server-x.x.x.gem</span>) and install it with:</p>
1421
+ </div>
1422
+ <div class="listingblock">
1423
+ <div class="content monospaced">
1424
+ <pre>sudo gem install passenger-enterprise-server-x.x.x.gem</pre>
1425
+ </div>
1387
1426
  </div>
1427
+ <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h4 id="upgrade_or_downgrade_with_tarball" class="float" data-comment-topic="obtaining-phusion-passenger-files-through-a-tarball-evcm0j">Obtaining Phusion Passenger files through a tarball</h4>
1428
+ <div class="paragraph"><p>You can obtain the files associated with the latest <em>open source</em> Phusion Passenger release by downloading the tarball linked from <a href="https://www.phusionpassenger.com/download">the Phusion Passenger download page</a>. If you want a specific version, please refer to the release archive on <a href="http://rubyforge.org/frs/?group_id=5873&amp;release_id=46919">RubyForge</a>.</p></div>
1429
+ <div class="paragraph"><p>If you’re using <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a> then you should obtain the tarball from the <a href="https://www.phusionpassenger.com/orders">Customer Area</a> instead. Login with your order reference and password. The Customer Area will show you a list of files. Download the tarball for the version you want (<span class="monospaced">passenger-enterprise-server-x.x.x.tar.gz</span>).</p></div>
1430
+ <div class="paragraph"><p>Once you’ve obtained the tarball, extract it somewhere:</p></div>
1431
+ <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h4 id="upgrade_or_downgrade_with_linux_packages" class="float" data-comment-topic="upgrading-with-native-linux-packages-jievu8">Upgrading with native Linux packages</h4>
1432
+ <div class="paragraph"><p>When using native Linux packages, it is only possible to upgrade, not downgrade. Native Linux packages are only available for the open source Phusion Passenger, not for Phusion Passenger Enterprise.</p></div>
1433
+ <div class="paragraph"><p>Native Linux packages are contributed by third parties. Although they update pretty quickly, they lag behind gem and tarball releases, perhaps by a few days. Please learn more about native Linux packages <a href="https://www.phusionpassenger.com/native_packages">at the Phusion Passenger website</a>.</p></div>
1388
1434
  </div>
1389
1435
  <div class="sect2">
1390
1436
  <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h3 id="_unloading_disabling_phusion_passenger_from_apache_without_uninstalling_it" data-comment-topic="unloading-disabling-phusion-passenger-from-apache-without-uninstalling-it-s1axnx">2.4. Unloading (disabling) Phusion Passenger from Apache without uninstalling it</h3>
@@ -5647,7 +5693,7 @@ has no effect.</p></div>
5647
5693
  <div id="footnotes"><hr></div>
5648
5694
  <div id="footer">
5649
5695
  <div id="footer-text">
5650
- Last updated 2012-08-28 11:03:54 CEST
5696
+ Last updated 2012-10-30 14:24:33 CET
5651
5697
  </div>
5652
5698
  </div>
5653
5699
  <script>/*! jQuery v1.7.1 jquery.com | jquery.org/license */
@@ -74,10 +74,6 @@
74
74
 
75
75
  2.3. Upgrading or downgrading Phusion Passenger => upgrading-or-downgrading-phusion-passenger-1dl8km6
76
76
 
77
- 2.3.1. Via a gem or a source tarball => via-a-gem-or-a-source-tarball-1vgkwhs
78
-
79
- 2.3.2. Via a native Linux package => via-a-native-linux-package-8dvooa
80
-
81
77
  2.4. Unloading (disabling) Phusion Passenger from Apache without uninstalling it => unloading-disabling-phusion-passenger-from-apache-without-uninstalling-it-s1axnx
82
78
 
83
79
  2.5. Uninstalling Phusion Passenger => uninstalling-phusion-passenger-1qb4ssq
@@ -314,3 +310,9 @@
314
310
 
315
311
  9.3. How Phusion Passenger detects whether a virtual host is a web application => how-phusion-passenger-detects-whether-a-virtual-host-is-a-web-application-179mp8m
316
312
 
313
+ Obtaining Phusion Passenger files through a tarball => obtaining-phusion-passenger-files-through-a-tarball-evcm0j
314
+
315
+ Obtaining Phusion Passenger files with RubyGems => obtaining-phusion-passenger-files-with-rubygems-8fz7a8
316
+
317
+ Upgrading with native Linux packages => upgrading-with-native-linux-packages-jievu8
318
+
@@ -237,31 +237,75 @@ about setting up Ruby on Rails and Phusion Passenger on OpenSolaris and EC2.
237
237
 
238
238
  === Upgrading or downgrading Phusion Passenger ===
239
239
 
240
- ==== Via a gem or a source tarball ====
240
+ Upgrading or downgrading Phusion Passenger for Apache involves several steps.
241
241
 
242
- To upgrade or downgrade Phusion Passenger via the gem or the source tarball, install the newer
243
- or older version as you normally would; that is, install the gem or unpack the tarball, and
244
- run `passenger-install-apache2-module`. Eventually `passenger-install-apache2-module` will tell
245
- you to copy & paste some settings into the Apache configuration file; something that looks along
246
- the lines of:
242
+ 1. First, you have to obtain and install the files associated with the version that you want to upgrade or downgrade to. You can do this in three ways: by using <<upgrade_or_downgrade_with_rubygems,RubyGems>>, by downloading a <<upgrade_or_downgrade_with_tarball,tarball>>, or by installing a <<upgrade_or_downgrade_with_linux_packages,native Linux package>>. If you installed a native Linux package, then skip to the last step. If not, read on.
243
+ 2. Then you have to recompile the Phusion Passenger Apache module by invoking
244
+ +
245
+ -----------------------------------
246
+ # If you used RubyGems
247
+ sudo passenger-install-apache2-module
247
248
 
249
+ # If you used the tarball
250
+ sudo /path-to-passenger/bin/passenger-install-apache2-module
251
+ -----------------------------------
252
+ 3. Finally, `passenger-install-apache2-module` will tell you to copy & paste some settings in the configuration file. Something that looks along the lines of:
253
+ +
248
254
  -----------------------------------
249
255
  LoadModule passenger_module ...
250
256
  PassengerRoot ...
251
257
  PassengerRuby ...
252
258
  -----------------------------------
253
-
259
+ +
254
260
  Because you already had Phusion Passenger installed, you already had similar settings
255
261
  in your Apache configuration file, just with different values. *Replace* the old settings with
256
262
  the new ones that the installer outputs. It is important that the old settings are removed,
257
263
  otherwise Phusion Passenger may malfunction.
264
+ 4. Restart Apache. You're now done.
265
+
266
+ [float]
267
+ [[upgrade_or_downgrade_with_rubygems]]
268
+ ==== Obtaining Phusion Passenger files with RubyGems ====
269
+
270
+ .Open source
271
+
272
+ You can obtain the files associated with the latest _open source_ Phusion Passenger release by invoking the following command:
273
+
274
+ -------------------------
275
+ sudo gem install passenger
276
+ -------------------------
277
+
278
+ You can also obtain a specific version by specifying the `-v` argument, like this:
279
+
280
+ ---------------------------------
281
+ sudo gem install passenger -v 3.0.0
282
+ ---------------------------------
283
+
284
+ .Enterprise
285
+
286
+ If you're using link:https://www.phusionpassenger.com/enterprise[Phusion Passenger Enterprise] then you should obtain the gem from the link:https://www.phusionpassenger.com/orders[Customer Area] instead. Login with your order reference and password. The Customer Area will show you a list of files. Download the gem file for the version you want (`passenger-enterprise-server-x.x.x.gem`) and install it with:
287
+
288
+ -------------------------------------------------------
289
+ sudo gem install passenger-enterprise-server-x.x.x.gem
290
+ -------------------------------------------------------
291
+
292
+ [float]
293
+ [[upgrade_or_downgrade_with_tarball]]
294
+ ==== Obtaining Phusion Passenger files through a tarball ====
295
+
296
+ You can obtain the files associated with the latest _open source_ Phusion Passenger release by downloading the tarball linked from link:https://www.phusionpassenger.com/download[the Phusion Passenger download page]. If you want a specific version, please refer to the release archive on link:http://rubyforge.org/frs/?group_id=5873&release_id=46919[RubyForge].
297
+
298
+ If you're using link:https://www.phusionpassenger.com/enterprise[Phusion Passenger Enterprise] then you should obtain the tarball from the link:https://www.phusionpassenger.com/orders[Customer Area] instead. Login with your order reference and password. The Customer Area will show you a list of files. Download the tarball for the version you want (`passenger-enterprise-server-x.x.x.tar.gz`).
299
+
300
+ Once you've obtained the tarball, extract it somewhere:
258
301
 
259
- When you're done, restart Apache.
302
+ [float]
303
+ [[upgrade_or_downgrade_with_linux_packages]]
304
+ ==== Upgrading with native Linux packages ====
260
305
 
261
- ==== Via a native Linux package
306
+ When using native Linux packages, it is only possible to upgrade, not downgrade. Native Linux packages are only available for the open source Phusion Passenger, not for Phusion Passenger Enterprise.
262
307
 
263
- There are no special instructions required to upgrade or downgrade Phusion Passenger
264
- via a native Linux package.
308
+ Native Linux packages are contributed by third parties. Although they update pretty quickly, they lag behind gem and tarball releases, perhaps by a few days. Please learn more about native Linux packages link:https://www.phusionpassenger.com/native_packages[at the Phusion Passenger website].
265
309
 
266
310
  === Unloading (disabling) Phusion Passenger from Apache without uninstalling it ===
267
311
 
@@ -2913,6 +2913,7 @@ measure to avoid freezing applications.</p></div>
2913
2913
  </div>
2914
2914
  <div class="sect3">
2915
2915
  <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><h4 id="PassengerMemoryLimit" data-comment-topic="passenger-memory-limit-integer--1ry7dwx">5.9.8. passenger_memory_limit &lt;integer&gt;</h4>
2916
+ <div class="paragraph"><p><strong>This feature is only available in <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a>. It was introduced in version 3.0.0. <a href="https://www.phusionpassenger.com/download">Buy Phusion Passenger Enterprise here.</a></strong></p></div>
2916
2917
  <div class="paragraph"><p>The maximum amount of memory that an application process may use, in megabytes.
2917
2918
  Once an application process has surpassed its memory limit, it will process
2918
2919
  all the requests currently present in its queue and then shut down.
@@ -4473,7 +4474,7 @@ has no effect.</p></div>
4473
4474
  <div id="footnotes"><hr></div>
4474
4475
  <div id="footer">
4475
4476
  <div id="footer-text">
4476
- Last updated 2012-08-28 11:03:54 CEST
4477
+ Last updated 2012-10-30 14:24:33 CET
4477
4478
  </div>
4478
4479
  </div>
4479
4480
  <script>/*! jQuery v1.7.1 jquery.com | jquery.org/license */
@@ -1217,6 +1217,9 @@ measure to avoid freezing applications.
1217
1217
 
1218
1218
  [[PassengerMemoryLimit]]
1219
1219
  ==== passenger_memory_limit <integer> ====
1220
+ :version: 3.0.0
1221
+ include::users_guide_snippets/enterprise_only.txt[]
1222
+
1220
1223
  The maximum amount of memory that an application process may use, in megabytes.
1221
1224
  Once an application process has surpassed its memory limit, it will process
1222
1225
  all the requests currently present in its queue and then shut down.
@@ -1127,7 +1127,7 @@ use the <span class="monospaced">-p</span> option, e.g.:</p></div>
1127
1127
  <div id="footnotes"><hr></div>
1128
1128
  <div id="footer">
1129
1129
  <div id="footer-text">
1130
- Last updated 2012-04-16 09:27:43 CEST
1130
+ Last updated 2012-10-30 14:24:33 CET
1131
1131
  </div>
1132
1132
  </div>
1133
1133
  <script>/*! jQuery v1.7.1 jquery.com | jquery.org/license */
@@ -32,7 +32,8 @@
32
32
  #ifdef __GLIBCXX__ // gcc 3.4 and greater:
33
33
  # if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
34
34
  || defined(_GLIBCXX__PTHREADS) \
35
- || defined(_GLIBCXX_HAS_GTHREADS)
35
+ || defined(_GLIBCXX_HAS_GTHREADS) \
36
+ || defined(_GLIBCXX_PTHREADS)
36
37
  //
37
38
  // If the std lib has thread support turned on, then turn it on in Boost
38
39
  // as well. We do this because some gcc-3.4 std lib headers define _REENTANT
@@ -26,7 +26,7 @@
26
26
  #define _PASSENGER_CONSTANTS_H_
27
27
 
28
28
  /* Don't forget to update lib/phusion_passenger.rb too. */
29
- #define PASSENGER_VERSION "3.0.17"
29
+ #define PASSENGER_VERSION "3.0.18"
30
30
 
31
31
  #define FEEDBACK_FD 3
32
32
 
@@ -25,9 +25,9 @@ module PhusionPassenger
25
25
  ###### Version numbers ######
26
26
 
27
27
  # Phusion Passenger version number. Don't forget to edit ext/common/Constants.h too.
28
- VERSION_STRING = '3.0.17'
28
+ VERSION_STRING = '3.0.18'
29
29
 
30
- PREFERRED_NGINX_VERSION = '1.2.3'
30
+ PREFERRED_NGINX_VERSION = '1.2.4'
31
31
  PREFERRED_PCRE_VERSION = '8.31'
32
32
  STANDALONE_INTERFACE_VERSION = 1
33
33
 
@@ -55,8 +55,12 @@ class AnalyticsLogging < ActiveSupport::LogSubscriber
55
55
  end
56
56
 
57
57
  if defined?(ActionDispatch::ShowExceptions)
58
+ exceptions_middleware = ActionDispatch::ShowExceptions
59
+ if defined?(ActionDispatch::DebugExceptions)
60
+ exceptions_middleware = ActionDispatch::DebugExceptions
61
+ end
58
62
  Rails.application.middleware.insert_after(
59
- ActionDispatch::ShowExceptions,
63
+ exceptions_middleware,
60
64
  ExceptionLogger, analytics_logger)
61
65
  end
62
66
 
@@ -151,6 +151,14 @@ private
151
151
  wrap_desc("The spawn method to use (default: #{@options[:spawn_method]})")) do |value|
152
152
  @options[:spawn_method] = value
153
153
  end
154
+ opts.on("--rolling-restarts",
155
+ wrap_desc("Enable rolling restarts (Enterprise only)")) do
156
+ @options[:rolling_restarts] = true
157
+ end
158
+ opts.on("--resist-deployment-errors",
159
+ wrap_desc("Enable deployment error resistance (Enterprise only)")) do
160
+ @options[:resist_deployment_errors] = true
161
+ end
154
162
  opts.on("--union-station-gateway HOST:PORT", String,
155
163
  wrap_desc("Specify Union Station Gateway host and port")) do |value|
156
164
  host, port = value.split(":", 2)
@@ -46,6 +46,8 @@ http {
46
46
  passenger_min_instances <%= @options[:min_instances] %>;
47
47
  <% if @options[:user] %>passenger_default_user <%= @options[:user] %>;<% end %>
48
48
  <% if debugging? %>passenger_log_level 2;<% end %>
49
+ <% if @options[:rolling_restarts] %>passenger_rolling_restarts on;<% end %>
50
+ <% if @options[:resist_deployment_errors] %>passenger_resist_deployment_errors on;<% end %>
49
51
 
50
52
  <% if @options[:union_station_gateway_address] %>
51
53
  union_station_gateway_address <%= @options[:union_station_gateway_address] %>;
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 17
10
- version: 3.0.17
9
+ - 18
10
+ version: 3.0.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phusion - http://www.phusion.nl/
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-28 00:00:00 Z
18
+ date: 2012-10-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake