vavavr00m / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

How to Upgrade Versions #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed 1.6.2 a while back
2. Want to upgrade to 1.6.4
3.

I used the standard .war file to deploy then just modified some CSS files but 
other than that is it a drop in and just copy the config and css files over to 
upgrade? Should I remove the older version then drop in the new one? What about 
the internal database file with user answers to questions?

I could not find any documentation about upgrading version anywhere on the site.

What version of PWM are you using?
1.6.2

What ldap directory and version are you using?
Active Directory

Original issue reported on code.google.com by jeverl...@bshp.edu on 29 Aug 2012 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by jrivard on 4 Sep 2012 at 5:28

GoogleCodeExporter commented 9 years ago
Has an answer been furnished to this request?

Original comment by steve.pa...@gmail.com on 26 Sep 2012 at 11:40

GoogleCodeExporter commented 9 years ago
The short version:
* backup the internal database and PwmConfiguration.xml and any custom files
* deploy the war
* put back the internal database and PwmConfiguration.xml and any custom files

The long version still needs to be documented properly.

Original comment by menno.pi...@gmail.com on 26 Sep 2012 at 12:05

GoogleCodeExporter commented 9 years ago
Upgrade instructions have been added to the development documentation; need to 
be added to the published version, though.

Upgrading
To upgrade PWM on Apache Tomcat, the following steps need to be performed:

    Stop the PWM application or entire application server;
    Make a backup of the file WEB-INF/PwmConfiguration.xml.
    Make a backup of the folder WEB-INF/pwmDB.
    Undeploy the old war file by removing both the war file and the extracted directory.
    Deploy the new war file.
    Clean the work and temp directories of the Tomcat application server.
    If the application server is stopped, start it to make sure it will expand the war file; if Tomcat is running it will automatically do so.
    Restore WEB-INF/pwmDB
    Restore WEB-INF/PwmConfiguration.xml. 

Remark: it is possible to place the pwmDB outside of the web application. In 
that case restoration of the pwmDB can be skipped. A backup should nevertheless 
be made, in case a roll back to the previous version is required, or something 
goes wrong.

Original comment by menno.pi...@gmail.com on 26 Sep 2012 at 12:38

GoogleCodeExporter commented 9 years ago

Original comment by menno.pi...@gmail.com on 26 Sep 2012 at 12:39