Skip to content

Commit d6e7c4f

Browse files
committed
Make upgrade instructions more exact
1 parent 9c4cacd commit d6e7c4f

File tree

2 files changed

+60
-15
lines changed

2 files changed

+60
-15
lines changed

doc/Users guide Apache.idmap.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@
7474

7575
2.3. Upgrading or downgrading Phusion Passenger => upgrading-or-downgrading-phusion-passenger-1dl8km6
7676

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-
8177
2.4. Unloading (disabling) Phusion Passenger from Apache without uninstalling it => unloading-disabling-phusion-passenger-from-apache-without-uninstalling-it-s1axnx
8278

8379
2.5. Uninstalling Phusion Passenger => uninstalling-phusion-passenger-1qb4ssq
@@ -314,3 +310,8 @@
314310

315311
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
316312

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

doc/Users guide Apache.txt

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -237,31 +237,75 @@ about setting up Ruby on Rails and Phusion Passenger on OpenSolaris and EC2.
237237

238238
=== Upgrading or downgrading Phusion Passenger ===
239239

240-
==== Via a gem or a source tarball ====
240+
Upgrading or downgrading Phusion Passenger for Apache involves several steps.
241241

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
247248

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+
+
248254
-----------------------------------
249255
LoadModule passenger_module ...
250256
PassengerRoot ...
251257
PassengerRuby ...
252258
-----------------------------------
253-
259+
+
254260
Because you already had Phusion Passenger installed, you already had similar settings
255261
in your Apache configuration file, just with different values. *Replace* the old settings with
256262
the new ones that the installer outputs. It is important that the old settings are removed,
257263
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:
258301

259-
When you're done, restart Apache.
302+
[float]
303+
[[upgrade_or_downgrade_with_linux_packages]]
304+
==== Upgrading with native Linux packages ====
260305

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.
262307

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].
265309

266310
=== Unloading (disabling) Phusion Passenger from Apache without uninstalling it ===
267311

0 commit comments

Comments
 (0)